瀏覽代碼

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


Loading…
取消
儲存