use proxy of brightdatao
This commit is contained in:
@@ -13,15 +13,21 @@ oracle_log_sender = LogSender()
|
||||
# proxy
|
||||
PROXY_SERVER = "http://gw.ntnt.io:5959"
|
||||
PROXY_PASSWORD = "94sY7zwBG13i"
|
||||
|
||||
BRIGHT_DATA_PROXY_SERVER = "http://zproxy.lum-superproxy.io:22225"
|
||||
BRIGHT_DATA_PROXY_USERNAME = " lum-customer-c_daabba94-zone-residential-country-fr"
|
||||
BRIGHT_DATA_PROXY_PASSWORD = "9dwmh54u3bbh"
|
||||
PROXY_NAME_PREFIX_RES = "panleicim-res-fr-"
|
||||
PROXY_NAME_PREFIX_CC = "panleicim-cc-fr-"
|
||||
|
||||
def get_proxy_name_prefix(proxy_type = 0) -> str:
|
||||
if proxy_type ==0:
|
||||
|
||||
def get_proxy_name_prefix(proxy_type=0) -> str:
|
||||
if proxy_type == 0:
|
||||
return PROXY_NAME_PREFIX_RES
|
||||
else:
|
||||
return PROXY_NAME_PREFIX_CC
|
||||
|
||||
|
||||
def get_random_id_number_for_proxy() -> str:
|
||||
S = 8 # number of characters in the string.
|
||||
ran = ''.join(random.choices(string.digits, k=S))
|
||||
|
||||
Reference in New Issue
Block a user