From 55bc7845fc13989f6d8cac40e549fefc3b9bad70 Mon Sep 17 00:00:00 2001 From: PAN Lei Date: Sat, 20 Apr 2024 12:15:04 +0200 Subject: [PATCH] remove invalid proxy --- queue_message/appointmentrequestsender.py | 1 + workers/proxies_constants.py | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/queue_message/appointmentrequestsender.py b/queue_message/appointmentrequestsender.py index b0a8f79..15e25e5 100644 --- a/queue_message/appointmentrequestsender.py +++ b/queue_message/appointmentrequestsender.py @@ -102,6 +102,7 @@ class AppointmentRequestSender(threading.Thread): _proxy_to_use = {} _proxy_to_use["http"] = _chosen_proxy["http"].format(_port) _proxy_to_use["https"] = _chosen_proxy["https"].format(_port) + print(_proxy_to_use) if "glrd" in _received_object: _received_dict = json.loads(_received_object) js_data = JsDataPojo(glrd=_received_dict['glrd'], glvd=_received_dict['glvd'], hc=_received_dict['hc'], diff --git a/workers/proxies_constants.py b/workers/proxies_constants.py index 64866a7..0af866a 100644 --- a/workers/proxies_constants.py +++ b/workers/proxies_constants.py @@ -15,10 +15,7 @@ FR_PROXY_MOBILE = { 'http': 'http://7039778-mobile-country-FR:2ji8e3r0nh@89.39.106.148:14806', 'https': 'http://7039778-mobile-country-FR:2ji8e3r0nh@89.39.106.148:14806', } -FR_PROXY_MOBILE_2 = { - 'http': 'http://d707052c-197322:21h64jwobv@190.2.149.148:18220', - 'https': 'http://d707052c-197322:21h64jwobv@190.2.149.148:18220', -} + FR_PROXY_MOBILE_3 = { 'http': 'http://11797317-mobile-country-FR:nv958134x@190.2.151.110:14046', 'https': 'http://11797317-mobile-country-FR:nv958134x@190.2.151.110:14046', @@ -69,7 +66,7 @@ DE_PROXY_RES = { # FR_PROXY_MOBILE # FR_PROXY_RES # PROXY_LIST = [FR_PROXY_MOBILE, FR_PROXY_RES, DE_PROXY_RES, DE_PROXY_MOBILE, ES_PROXY_MOBILE, IT_PROXY_MOBILE] -# PROXY_LIST_FR = [FR_PROXY_MOBILE_2, FR_PROXY_MOBILE, FR_PROXY_RES, FR_PROXY_RES_4, FR_PROXY_RES_2] +# MOBILE_PROXY_LIST_FR = [FR_PROXY_MOBILE_3, FR_PROXY_MOBILE] # PROXY_LIST_FR = [FR_PROXY_RES_OXY, FR_PROXY_MOBILE_3] # PROXY_LIST_FR = [ FR_PROXY_MOBILE_3] PROXY_LIST_FR = [FR_PROXY_RES_OXY]