如何用Portia刮去Legue Of Legends召唤者排名数据?

时间:2017-02-03 16:59:06

标签: python scrapy portia riot-games-api

大家好。我的论文项目是关于电子竞技行为分析。 我的编程和数据工程技能有限。

  • 我有一份召唤者名单(研究参与者)
  • 我试图从“lolking.net”这样的页面中删除他们的排名数据
    • 有不同的季节(S1,S2 ......)
    • 等级奖章由.png标记,而不是数字或文字。 (这是最大的问题)

让我们看一下这个例子: [ sry for the big picture link,目标不允许嵌入]

Here is a picture of a summoner profile, and the items containing the information. I need,the main medal shows the actual Seasion (S7) rank picture (bronze_1). But there is hidden items also, which shows after clicking to the button marked by the arrow. After this the the HTML source, and the desired output

所需的输出如下:

  

SUMMONER NAME; S1rank; S2rank; S3rank; S4rank; S5rank; S6rank; S7rank   Shadowhuner; NA; NA; NA,NA; bronze_5; silver4; silver_2; bronze_1

StackOverflow的好人,请帮我构建这个蜘蛛! 我的具体问题:

如何解决Portia中排名数据的选择器?

  • 记住:根据召唤者的游戏历史,隐藏或有时不隐藏。 (基本上:当他们开始玩的时候)

0 个答案:

没有答案