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))
|
||||
|
||||
|
||||
+3
-2
@@ -12,11 +12,12 @@ PROXY_PASSWORD = "94sY7zwBG13i"
|
||||
|
||||
BRIGHT_DATA_PROXY_SERVER = "http://zproxy.lum-superproxy.io:22225"
|
||||
OXYLABS_PROXY_SERVER = "pr.oxylabs.io:7777"
|
||||
OXYLABS_DATA_PROXY_USERNAME = "customer-appointment-cc-FR"
|
||||
OXYLABS_DATA_PROXY_USERNAME = "customer-rendezvous-cc-FR"
|
||||
OXYLABS_DATA_PROXY_PASSWORD = "Rdv20222021"
|
||||
|
||||
BRIGHT_DATA_PROXY_USERNAME = "lum-customer-c_daabba94-zone-zone1-country-fr"
|
||||
BRIGHT_DATA_MOBILE_PROXY_USERNAME = "lum-customer-c_daabba94-zone-mobile-country-fr-mobile"
|
||||
BRIGHT_DATA_PROXY_PASSWORD = "fek66ugso76z"
|
||||
OXYLABS_DATA_PROXY_PASSWORD = "Rdv@20222021"
|
||||
BRIGHT_DATA_MOBILE_PROXY_PASSWORD = "fk5f7c2z2c19"
|
||||
PROXY_NAME_PREFIX_RES = "panleicim-res-fr-"
|
||||
PROXY_NAME_PREFIX_CC = "panleicim-cc-fr-"
|
||||
|
||||
Reference in New Issue
Block a user