misc minor changes
proxywatchd: remove sleep ppf: update proxies schemes
This commit is contained in:
@@ -103,11 +103,8 @@ class Proxywatchd(Thread):
|
||||
q = 'SELECT proxy,failed,country,proto FROM proxylist WHERE failed<? and tested<? ORDER BY RANDOM() LIMIT ?'
|
||||
|
||||
while self.running:
|
||||
|
||||
time.sleep(0.1)
|
||||
sqlite_requests = []
|
||||
rows = sqlite.execute(q, (self.maxfail, time.time(), random.randint(10,20))).fetchall()
|
||||
|
||||
if not len(rows):
|
||||
time.sleep(random.randint(10,20))
|
||||
continue
|
||||
|
||||
3
ppf.py
3
ppf.py
@@ -29,8 +29,7 @@ database = 'proxies.sqlite'
|
||||
searx_instances = ('https://searx.me', 'https://searx.xyz', 'https://searx.site', 'https://searx.win', 'https://searx.ru', 'https://stemy.me/searx', 'https://searx.at', 'https://listi.me', 'https://searx.dk', 'https://searx.laquadrature.net' )
|
||||
|
||||
retry_messages = ('Engines cannot retrieve results', 'Rate limit exceeded')
|
||||
proxies={ 'http': 'socks5://127.0.0.1:9050', 'https': 'socks5://127.0.0.1:9050', 'ftp': 'socks5://127.0.0.1:9050'}
|
||||
|
||||
proxies={'http':'socks5://127.0.0.1:9050','https':'socks5://127.0.0.1:9050'}
|
||||
|
||||
# include own classes
|
||||
sys.path.append('./includes')
|
||||
|
||||
Reference in New Issue
Block a user