use oxylabs proxy
This commit is contained in:
@@ -147,8 +147,8 @@ def need_to_valid_url(url: str, successful_items) -> bool:
|
||||
|
||||
|
||||
def need_to_check_email(mail: str, successful_items) -> bool:
|
||||
# return True
|
||||
print("successful_items size is " + str(len(successful_items)))
|
||||
# return True
|
||||
for item in successful_items:
|
||||
if mail in item.email:
|
||||
if item.url_validated is not None:
|
||||
@@ -195,7 +195,7 @@ def read_mails():
|
||||
if need_to_valid_url(url, successful_items):
|
||||
url_validator = LinkValidator(url)
|
||||
print("need to validate url: " + url)
|
||||
executor.submit(url_validator.start_page, params.get_proxy(ProxyType.RESIDENTIAL), True)
|
||||
executor.submit(url_validator.start_page, params.get_proxy(ProxyType.OXYLABS), True)
|
||||
else:
|
||||
print("do not need to click url --> {}".format(mail.mail_address))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user