D
D
Djigo2021-05-22 15:21:00
Python
Djigo, 2021-05-22 15:21:00

I can’t enter the site, error 403, I’m doing it through requests_html, how to enter?

There is a website: https://mexc.zendesk.com/hc/en-001/sections/360004... . I can’t access it, writes a 403 error, I tried to insert user-agent and referer, it doesn’t work. I am using requests_html.

from requests_html import HTMLSession
session = HTMLSession()
session.headers = {"user-agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.41 YaBrowser/21.5.0.582 Yowser/2.5 Safari/537.36", "Referer": "https://mexc.zendesk.com/hc/en-001/sections/360004654852-New-Listings", "Host": "mexc.zendesk.com", "Upgrade-Insecure-Requests": "1"}
r = session.get("https://mexc.zendesk.com/hc/en-001/sections/360004654852-New-Listings", cookies={"__cf_bm": "ccf727e666a40bdcc1b899f16b58b8193c08cc7b-1621683699-1800-Afe7D3b2I3ZqPZGZMVpEJOYQ6RZ6Gc8uvdzqPmxwJcFud/LE87poXNmZbFAM+jcqOaGT+tiLbKSlfn+6ONEKuHWfmw6TpJzT2QhDxxcS5IqE/x8kiyMzWwYSlB3AkTcUkA==", "__cfruid": "2377009dc398e98564cc99bdb07d294f58506280-1621684838"})

Issued by: Security check

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
UberPool, 2021-05-22
@UberPool

Try using selenium

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question