diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-21 22:42:57 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-21 22:42:57 +0100 |
commit | dcd493c8c029a45e7e1e87fbbcae69f5385d5f9e (patch) | |
tree | ba9626c9ab26ccb8b5e775b0d91cb0afed159d15 /module/network/Browser.py | |
parent | partial integrated new dl backend (completly unusable atm) (diff) | |
download | pyload-dcd493c8c029a45e7e1e87fbbcae69f5385d5f9e.tar.xz |
changed request files
Diffstat (limited to 'module/network/Browser.py')
-rw-r--r-- | module/network/Browser.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/module/network/Browser.py b/module/network/Browser.py index c0742c4ff..d70cb3aba 100644 --- a/module/network/Browser.py +++ b/module/network/Browser.py @@ -78,13 +78,16 @@ class Browser(): return d if __name__ == "__main__": - browser = Browser(proxies={"socks5": "localhost:5000"}) + browser = Browser()#proxies={"socks5": "localhost:5000"}) ip = "http://www.whatismyip.com/automation/n09230945.asp" #browser.getPage("http://google.com/search?q=bar") #browser.getPage("https://encrypted.google.com/") - print browser.getPage(ip) + #print browser.getPage(ip) #print browser.getRedirectLocation("http://google.com/") #browser.getPage("https://encrypted.google.com/") #browser.getPage("http://google.com/search?q=bar") - #browser.downloadFile("http://speedtest.netcologne.de/test_100mb.bin", "test_100mb.bin") + browser.httpDownload("http://speedtest.netcologne.de/test_100mb.bin", "test_100mb.bin") + from time import sleep + while True: + sleep(1)
\ No newline at end of file |