G
G
GREYSERGING2022-01-26 19:15:39
Python
GREYSERGING, 2022-01-26 19:15:39

How to avoid blocking by IP?

Code snippet:

requests.get(f"https://blockchain.info/multiaddr?active={addr}&n=1")

makes 100 requests per second. After 70,000 requests, the site blocks by IP, I tried with a proxy that the script also got, it does not work. How can blocking be avoided or prevented.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dr. Bacon, 2022-01-26
@bacon

Stop hammering like a woodpecker, read the rules of the site about the limits and do not exceed them.

N
NyxBox, 2022-01-26
@NyxBox

requests.get(f"https://blockchain.info/multiaddr?active={addr}&n=0")

V
Vladimir Kuts, 2022-01-27
@fox_12

Currently there is a limit of 1200 messages per minute. If the limit is exceeded, you will receive a rejected event. After waiting a minute, normal functionality will resume and you will be able to send messages again.

Read documentation and do not violate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question