From dcd493c8c029a45e7e1e87fbbcae69f5385d5f9e Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 21 Dec 2010 22:42:57 +0100 Subject: changed request files --- module/network/Browser.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'module/network/Browser.py') 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 -- cgit v1.2.3