Python - 屏幕抓取 Yahoo!梦幻足球游戏频道
所以我正在尝试抓取雅虎游戏频道/startracker,这样我就可以在玩家获得积分时获取幻想队的更新,这样我就可以在Excel中制作图表。网站网址基本上是 http://sports.yahoo.com/nfl/gamechannel?app=st& ;lid=60604 <-- 最后的数字是联赛 id
我对 python 有点陌生。
我首先尝试使用 beautiful soup,它有效并为我提供了页面的代码,但不是游戏频道,因为它需要 javascript。
我得到了 webkit 并运行了它,但是游戏频道应该在哪里,它告诉我更新我的 Flash 播放器。与?它是最新的。
我该怎么办?
So I am trying to scrape Yahoo gamechannel/startracker so i can grab the updates for the fantasy teams when players get points, so i can make graphs in excel. The website url is basically
http://sports.yahoo.com/nfl/gamechannel?app=st&lid=60604 <-- the number at the end is the league id
i am kinda new to python.
I tried using beautiful soup first, which worked and got me the code for the page, but not he game channel since it requires javascript.
I got webkit and ran it through that, but where the gamechannel is supposed to be it is telling me to update my flash player. wth? it is up to date.
What do i do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想查看 Yahoo Fantasy Sports API:http://developer.yahoo.com /fantasysports/guide/index.html
This
是您可以获得的数据类型。这有什么用处吗?或者您是否想获取无法通过 API 获得的信息?
附言。您需要在此处获取 API 密钥: http://developer.yahoo.com/dashboard/创建密钥.html
You might want to look into the Yahoo Fantasy Sports API: http://developer.yahoo.com/fantasysports/guide/index.html
This
is the kind of data you can get.Would that be of any use or are you trying to get information that isn't available through the API?
PS. You'll need to get an API key here: http://developer.yahoo.com/dashboard/createKey.html