use oxylabs proxy

This commit is contained in:
2022-10-21 14:47:00 +02:00
parent 159d9e3811
commit 70fdc64d77
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -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))