From d08ca2226293d2d5be60a377e9a5a14cef88f731 Mon Sep 17 00:00:00 2001 From: sgrtye Date: Sun, 29 Sep 2024 21:13:15 +0100 Subject: [PATCH] shuffle the proxy list --- novel/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/novel/main.py b/novel/main.py index 04fc61e..f562cf0 100644 --- a/novel/main.py +++ b/novel/main.py @@ -1,6 +1,7 @@ import os import time import json +import random import telebot import datetime import requests @@ -59,6 +60,8 @@ def load_proxies(): if len(proxies) == 0: raise Exception("No available proxy") + random.shuffle(proxies) + else: raise Exception("Proxy server not responding")