浏览代码

new site elements

master
calexil 2 年前
父节点
当前提交
3007d179df
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      rankcheck.py

+ 1
- 1
rankcheck.py 查看文件

@@ -35,7 +35,7 @@ def main():
# Scrape rank data from navbar span
result = session_requests.get(URL, headers = dict(referer = URL))
tree = html.fromstring(result.content)
rank_number = tree.xpath('//span[@class="navbar-text"]/text()')
rank_number = tree.xpath('//span[@id="leaderboardRank"]/text()')

print "%s" % rank_number


正在加载...
取消
保存