import requests
r = requests.get('https://xueqiu.com/stock/forchartk/stocklist.json?symbol=SH600423&period=1day&type=before&end=1463365186825&_=1463365186825')
print r.text
为啥会报 403 Forbidden. Your IP Address: .
应该怎么正确使用能得到返回结果?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
需要先访问主页面获取到cookie,再操作
目测是没有登录
加上user agent试试。 也可能抓取频率过快,ip被封了。