这是我想取消的页面:https://www.racing.com/form/2018-11-06/flemington/race/7/results 比赛结果信息不在源代码中。你知道吗
我尝试了Chrome开发工具,但是没有找到包含结果的响应数据。你知道吗
以下是源代码中的一些代码:
ng-controller="formTabResultsController"
ng-init="meet=5149117;race=7;init();" ajax-loader="result"
我认为结果会被返回并保存在“result”结构中,因为有很多类似的结果:结果.PrizeMoney" "结果.记录". 你知道吗
那么,如何使用Python获得结果的数据呢?谢谢。你知道吗
此站点在
https://graphql.rmdprod.racing.com
上使用GraphQLAPI。API密钥需要通过头发送&检索时here。你知道吗以curl、sed&;jq为例:
将python与python-requests一起使用:
chromedev工具显示了对其API的调用
另一种方法是使用这些参数(可通过浏览器中的“开发人员”选项卡发现),而不使用regex:
相关问题 更多 >
编程相关推荐