有OnClick事件按钮时刮擦数据
我正在尝试从“ https://lol.inven.co.kr/dataninfo/match/teamlist.php”中刮擦数据(对不起,网站不使用英语)
在这种情况下,是单击OnClick按钮(“ eftectable”)时刮擦出现的唯一方法是Selenium?无论如何,我可以使用美丽的套装和请求吗?
欢迎任何想法。先感谢您!
I am trying to scrape data from "https://lol.inven.co.kr/dataninfo/match/teamList.php" (sorry the website is not in English)
When I don't clikc the orange squre button, the site does not have "detailTable"
When clicking the button, "detailTable" shows up, which I actually want to scrape.
Since it is the dummy webpage, the request URL (POST) does not have any rule.
In this case, is the only way to scrape what appears when clicking onclick button ("detailTable") is Selenium? Is there anyway that I can use BeautifulSoup and Requests combined?
Any ideas are welcome. Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以从该帖子请求中获取所有数据,但是首先您需要获得
MatchCode
值。然后,制作
post
请求,然后解析XML
您回来的。例如:
这将打印第一场比赛的播放器名称。
这是您在每个
post
请求上获得的完整XML。You can get all the data from that post request but first you need to get the
matchcode
values.Then, make a
POST
request and parse anXML
that you get back.For example:
This prints player names for the first match.
And here's a full XML that you get on each
POST
request.