T
T
tem12qaz2021-11-17 17:08:45
Python
tem12qaz, 2021-11-17 17:08:45

Why is the site blocking connections via aiohttp?

I am rewriting the requests parser on aiohttp.

And aiohttp with the same data began to give me a captcha. Requests continues to produce the desired result without captcha.

response = requests.post(url,
                             headers=headers,
                             proxies=proxies,
                             cookies=cookies,
                             data=data
)

    async with aiohttp.ClientSession() as session:
        resp = await session.post(
            url,
            headers=headers,
            proxy=proxy,
            cookies=cookies,
            data=data
        )


Url, headers, proxy, cookies, data are the same.
Maybe I'm stupid somewhere in the obvious place?
Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-11-17
@sergey-gornostaev

You probably have sequential requests with request, but competitive requests with aiohttp.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question