open page in web browser it works but when i make get request in postman , it returns error, i have tried to use vpn but it doesn't help
Did you try copying the request from network tab in devtools in browser?
because postman has it's own user-agent maybe the website or their CDN provider has blocked non browser user-agents
I am getting the same issue when i make request in my python code
well it depends on the library that you use. are you trying to crawl the website? if so most crawlers do have their own user-agent to respect the website's policy
What i should try , i don’t understand?
i have used the request library in python
F12, press network tab, reload, right click the main request (usually the first one) and copy it
i could copy the request , but i need it to be copied in code every hour
So copying it made it work?
the request library by default has a user agent like this python-requests/2.2.1 CPython/2.7.5 Darwin/13.1.0 try to manually fill the user-agent with firefox user-agent for example. maybe that could help.
Обсуждают сегодня