我试图用一个html请求从Biwenger中获取数据,但是响应返回的数据与在chrome中打开url时不同。你知道吗
这是我的密码
import requests
shots_url = "https://biwenger.as.com/user/naranjas-4537694"
response = requests.get(shots_url)
response.raise_for_status() # raise exception if invalid response
print(response.text)
我没有收到任何错误(),但是数据请求显示的数据与url和此消息中的数据不同:
<!doctype html><meta charset=utf-8><title>Biwenger</title><base href=/ ><meta...<div class=body><p>Looks like the browser you're using is not compatible with Biwenger :(<p>We recommend using <a href=http://www.google.com/chrome/ target=_blank>Google Chrome</a>...</script>
你知道我可以用什么代码来获取正确的数据吗?你知道吗
如果你需要更多的信息,请告诉我。谢谢大家。你知道吗
数据通过JavaScript/JSON动态加载。当您打开Firefox/Chrome开发者工具-网络选项卡时,您将看到页面在哪里发出请求)。你知道吗
此示例将获得有关用户播放器的信息:
印刷品:
输出:Click Here
相关问题 更多 >
编程相关推荐