我想访问链接http://www.nation.co.ke/business/seedsofgold/Egg-imports-from-Uganda-hatch-big-losses-for-farmers/-/2301238/2897930/-/dpeqesz/-/index.html
该链接可公开访问,甚至可以使用curl加载。
但是在Java代码中它抛出了Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.na
我尝试在不使用API的情况下登录instagram,但收到403响应?凭据是正确的,但仍然得到响应。在这件事上有什么帮助吗?
import requests
main_url = 'https://www.instagram.com/'
login_url = main_url+'accounts/login/'
user_agent = 'User-Agent: Mozilla/5.0 (iPad; CPU OS 6_0_1 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6