Skip to content

Instantly share code, notes, and snippets.

@qls0ulp
Forked from AaronMT/sites.csv
Last active September 13, 2019 04:31
Show Gist options
  • Select an option

  • Save qls0ulp/d98e5cbd89ef52ad05148fba64b7289c to your computer and use it in GitHub Desktop.

Select an option

Save qls0ulp/d98e5cbd89ef52ad05148fba64b7289c to your computer and use it in GitHub Desktop.

Revisions

  1. qls0ulp revised this gist Sep 13, 2019. No changes.
  2. @AaronMT AaronMT revised this gist Nov 1, 2013. 2 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
  3. @AaronMT AaronMT renamed this gist Nov 1, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. @AaronMT AaronMT created this gist Nov 1, 2013.
    20 changes: 20 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
    import sys, csv

    browsers = ['org.mozilla.fennec_rnewman/.App']

    def main():
    # Connects to the current device, returning a MonkeyDevice object
    device = MonkeyRunner.waitForConnection()

    #Start each browser activity with the provided URI
    for run, browser in enumerate(browsers):

    # Visit each site
    for visit, site in enumerate(csv.reader(open(sys.argv[1]).readlines())):

    # Start the activity with the provided site
    device.startActivity(component=browser, uri=site[0])

    if __name__ == "__main__":
    main()
    25 changes: 25 additions & 0 deletions gistfile2.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    "http://google.com"
    "http://facebook.com"
    "http://youtube.com"
    "http://yahoo.com"
    "http://baidu.com"
    "http://wikipedia.org"
    "http://live.com"
    "http://qq.com"
    "http://amazon.com"
    "http://twitter.com"
    "http://taobao.com"
    "http://blogspot.com"
    "http://linkedin.com"
    "http://google.co.in"
    "http://yahoo.co.jp"
    "http://sina.com.cn"
    "http://ebay.com"
    "http://msn.com"
    "http://google.co.jp"
    "http://bing.com"
    "http://yandex.ru"
    "http://wordpress.com"
    "http://google.de"
    "http://google.com.hk"
    "http://vk.com"