S
S
Sergey Yavin2019-11-18 17:20:45
Python
Sergey Yavin, 2019-11-18 17:20:45

Why does the parser ban the server?

I send a request every 6 seconds here:

def request_json():
  response = requests.get("https://whmelscedo.top/LiveFeed/GetChampZip?lng=ru&champ=1252965&partner=8&tf=10000", headers = {'User-Agent': UserAgent().chrome})
  fight_all = response.json()
  return fight_all

After 20 minutes an error occurs. I used:
socks.set_default_proxy(socks.SOCKS5, "localhost", 9150)
socket.socket = socks.socksocket

Through Tor, the ip changes every 10 seconds (I set it in the settings), now the code works a little more, but they still ban me. What to do

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2019-11-18
@sjaserds

Options:
1. IP does not really change
2. IP changes, but not in the parser 3.
You were banned for other reasons
4. Your code stops working over time
awkward question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question