diff --git a/main.py b/main.py index 587d9df..87501df 100644 --- a/main.py +++ b/main.py @@ -189,7 +189,7 @@ def gettoken(): u = uuid.uuid4() uuid_with_dash = str(u) uuid_no_dash = u.hex - traffic_segment = str(random.randint(10 ** 8, 10 ** 9 - 1)) + traffic_segment = str(random.randint(100_000, 999_999)) data = { 'client_id': 'f1a362d288c1b98099c7', 'client_secret': 'eea605b96e01c796ff369935357eca920c5da4c5', diff --git a/multi_proxy_refill.py b/multi_proxy_refill.py index f547641..d6f1f37 100644 --- a/multi_proxy_refill.py +++ b/multi_proxy_refill.py @@ -43,7 +43,7 @@ def fetch_proxies3(region_code, n): except (RequestException, ValueError): time.sleep(1) return fetch_proxies3(region_code, n) - result = resp.text.split("\r\n") + result = ["http://" + item for item in resp.text.split("\r\n")] return result def fetch_proxies2(region_code, n):