Przeglądaj źródła

update readme_en

Shellmiao 1 rok temu
rodzic
commit
85933f5ad0
2 zmienionych plików z 28 dodań i 0 usunięć
  1. 1 0
      README.md
  2. 27 0
      README_EN.md

+ 1 - 0
README.md

@@ -1,5 +1,6 @@
 # Hsreplay.netCrawler
 一个用于爬取Hsreplay.net网站中酒馆战旗模块数据的爬虫
+[README_EN](README_EN.md)
 ## 使用方法
 ```
 python .\main.py -h

+ 27 - 0
README_EN.md

@@ -0,0 +1,27 @@
+# Hsreplay.netCrawler
+A web crawler for scraping Battlegrounds module data from Hsreplay.net website
+[README_CN](README.md)
+## Usage
+```
+python .\main.py -h
+```
+
+```
+usage: main.py [-h] -o {comp,hero,minion} -p {ALL,TOP_20_PERCENT} -r {CURRENT_BATTLEGROUNDS_PATCH,LAST_7_DAYS}
+               [-s SESSIONID] [-c CSRFTOKEN]
+
+Scrape hsreplay.net Battlegrounds data
+
+optional arguments:
+  -h, --help            show this help message and exit
+  -o {comp,hero,minion}, --operation {comp,hero,minion}
+                        comp: Composition hero: Hero minion: Minion
+  -p {ALL,TOP_20_PERCENT}, --percentile {ALL,TOP_20_PERCENT}
+                        ALL: All players TOP_20_PERCENT: Top 20% of players
+  -r {CURRENT_BATTLEGROUNDS_PATCH,LAST_7_DAYS}, --range {CURRENT_BATTLEGROUNDS_PATCH,LAST_7_DAYS}
+                        CURRENT_BATTLEGROUNDS_PATCH: Current version LAST_7_DAYS: Last 7 days
+  -s SESSIONID, --sessionid SESSIONID
+                        session_id value (optional/can be modified in main.py)
+  -c CSRFTOKEN, --csrftoken CSRFTOKEN
+                        csrf_token value (optional/can be modified in main.py)
+```