discard urls who fail at first test

This commit is contained in:
mickael
2019-01-09 23:38:59 +00:00
parent 15dee0cd73
commit da4f228479

5
ppf.py
View File

@@ -165,7 +165,10 @@ def proxyleech(sqlite, rows):
hash = hashlib.md5(''.join(uniques)).hexdigest()
## empty list of proxies: multiply error by two
if not len(uniques): row[2] = (row[2] * 2)
if not len(uniques):
if row[1]: row[2] = (row[2] * 2)
else: row[2] = 99999
## same proxy list: increment error by one
elif hash == row[1]: row[2] = (row[2] + 1)
## proxylist was updated: error is zero