save urlToValidate to db
This commit is contained in:
@@ -197,9 +197,10 @@ def read_mails():
|
||||
if match:
|
||||
url = match.group(0)
|
||||
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.OXYLABS), True)
|
||||
MONGO_STORE_MANAGER.save_links_to_validate(url)
|
||||
# url_validator = LinkValidator(url)
|
||||
# print("need to validate url: " + url)
|
||||
# executor.submit(url_validator.start_page, params.get_proxy(ProxyType.OXYLABS), False)
|
||||
else:
|
||||
print("do not need to click url --> {}".format(mail.mail_address))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user