misc minor changes

proxywatchd: remove sleep
ppf: update proxies schemes
This commit is contained in:
mickael
2019-01-04 19:58:52 +00:00
parent 6453494839
commit d7f79708ca
2 changed files with 1 additions and 5 deletions

View File

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

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