updated default proxy list site
parent
e978f29437
commit
0197265506
|
@ -1 +1,3 @@
|
|||
.idea
|
||||
*.pyc
|
||||
venv
|
||||
|
|
|
@ -112,11 +112,17 @@ class Scallywag:
|
|||
self.mnuPulldown.set_model(self.proxy_store)
|
||||
|
||||
self.proxylister = proxylister.Scraper( self.config )
|
||||
|
||||
self.status("Fetching proxies...")
|
||||
print("Fetching proxies...")
|
||||
|
||||
for proxy in self.proxylister.get_proxies():
|
||||
print("Found: {0}".format( proxy ))
|
||||
self.proxy_store.append([proxy])
|
||||
|
||||
self.mnuPulldown.set_active(0)
|
||||
print("Proxy fetch complete.")
|
||||
|
||||
self.mnuPulldown.set_active(0)
|
||||
|
||||
self.results_store = Gtk.ListStore(int, int, str, str, str, str)
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ class Scraper:
|
|||
self.config = config
|
||||
|
||||
def get_proxies(self):
|
||||
print("Fetching raw HTML from '{0}'".format( self.config.proxylist_url))
|
||||
fetch_results = self.client.get( self.config.proxylist_url )
|
||||
proxy_list = self.Parser.scrape( "proxy_list", fetch_results.content )
|
||||
return proxy_list
|
||||
|
|
Loading…
Reference in New Issue