C
C
crybabyyy2021-08-10 14:35:49
Python
crybabyyy, 2021-08-10 14:35:49

How to send a direct request using requests Python?

The problem is this. I send a get request to a website with headers. But the site does not return a normal page, although there is no error. The server returns some garbage. The question is. How to bypass site blocking?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-08-10
@SoreMix

Add other headers as an option. But if the creator of the site would like to protect himself from such requests, then this is done in half a line in one of a bunch of ways, and then no headings will help. As an option - try selenium, but not the fact that it will work, it is also detected very quickly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question