updated default proxy list site

master
Christopher M. Punches 2021-07-06 01:34:57 -04:00
parent e978f29437
commit 0197265506
3 changed files with 10 additions and 1 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
.idea
*.pyc
venv

View File

@ -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)

View File

@ -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