Skip to content

Commit

Permalink
shuffle the proxy list
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrtye committed Sep 29, 2024
1 parent cfe7a3e commit d08ca22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions novel/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import time
import json
import random
import telebot
import datetime
import requests
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit d08ca22

Please sign in to comment.