more proxies

This commit is contained in:
2024-01-12 13:59:46 +01:00
parent 20310bc871
commit 13bedd4d13
3 changed files with 8 additions and 2 deletions
+1
View File
@@ -75,6 +75,7 @@ def on_message(ch, method, properties, body):
sub_contact_list = filter_contacts(contact_list) sub_contact_list = filter_contacts(contact_list)
random.shuffle(sub_contact_list) random.shuffle(sub_contact_list)
if len(sub_contact_list) > 0: if len(sub_contact_list) > 0:
print("contact number is {}".format(len(sub_contact_list)))
for con in sub_contact_list: for con in sub_contact_list:
# if not is_already_sent(con): # if not is_already_sent(con):
print(con.mail) print(con.mail)
+2 -1
View File
@@ -41,7 +41,8 @@ class CaptchaResultGetter:
proxy_to_use = random.choice(PROXY_LIST) proxy_to_use = random.choice(PROXY_LIST)
print("received cookie is " + str(cookie)) print("received cookie is " + str(cookie))
try: try:
response = requests.get(url=HERMES_REGISTER, headers=headers, verify=False, proxies=proxy_to_use) response = requests.get(url=HERMES_REGISTER, headers=headers, verify=False, proxies=proxy_to_use,
timeout=15)
print(response.status_code) print(response.status_code)
if response.status_code == 200: if response.status_code == 200:
print(response.text) print(response.text)
+5 -1
View File
@@ -2,6 +2,10 @@ ES_PROXY_MOBILE = {
'http': 'http://9972280-mobile-country-ES:hex2f4xnw@109.236.94.16:13805', 'http': 'http://9972280-mobile-country-ES:hex2f4xnw@109.236.94.16:13805',
'https': 'http://9972280-mobile-country-ES:hex2f4xnw@109.236.94.16:13805' 'https': 'http://9972280-mobile-country-ES:hex2f4xnw@109.236.94.16:13805'
} }
ES_PROXY_RES = {
'http': 'http://08241c84-655034:7jd8chsbg@185.100.233.101:39232',
'https': 'http://08241c84-655034:7jd8chsbg@185.100.233.101:39232'
}
IT_PROXY_MOBILE = { IT_PROXY_MOBILE = {
'http': 'http://9972284-mobile-country-IT:28blddao6a@62.112.9.140:13124', 'http': 'http://9972284-mobile-country-IT:28blddao6a@62.112.9.140:13124',
@@ -26,4 +30,4 @@ DE_PROXY_RES = {
} }
# FR_PROXY_MOBILE # FR_PROXY_MOBILE
# FR_PROXY_RES # FR_PROXY_RES
PROXY_LIST = [FR_PROXY_MOBILE, DE_PROXY_MOBILE, ES_PROXY_MOBILE, IT_PROXY_MOBILE] PROXY_LIST = [FR_PROXY_MOBILE, FR_PROXY_RES, DE_PROXY_RES, DE_PROXY_MOBILE, ES_PROXY_MOBILE, IT_PROXY_MOBILE]