stu01509 / TaiwanLotteryCrawler

Taiwan Lottery Crawler 台灣 樂透 彩券 爬蟲

Home Page:https://pypi.org/project/taiwanlottery/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FEAT: 實作 TaiwanLotteryCrawler CLI 工具列

stu01509 opened this issue · comments

問題 Issue

實作 TaiwanLotteryCrawler CLI 工具列, 可以直接在 CLI 取得的開獎資訊

重現步驟 Reproduce

重現該行為的步驟(Steps to reproduce the behavior):

  1. 執行 '....'
  2. See error
  3. ...

預期行為 Expected Behavior

環境 Environment

  • Python Version:
  • Operating System:
  • TaiwanLotteryCrawler Version:

截圖 Screenshot

Example

- 爬取結果可直接輸出產生成 json 格式檔案進行後續使用。
- 針對單一的彩券遊戲可以爬取幾個月前的開獎紀錄。


### 爬取當月份的開獎紀錄

shell
python crawl.py

### 爬取當月份的開獎紀錄並輸出 JSON

shell
python crawl.py -o

### 往回爬取指定彩券的幾個月前的開獎紀錄

爬取 5 個月前的開獎資料

shell
python crawl.py 威力彩 -b 5

shell
python crawl.py 大樂透 -b 5

shell
python crawl.py 今彩539 -b 5

shell
python crawl.py 雙贏彩 -b 5

### 往回爬取指定彩券的幾個月前的開獎紀錄並輸出 JSON

爬取 5 個月前的開獎資料並輸出 JSON

shell
python crawl.py 威力彩 -b 5 -o

shell
python crawl.py 大樂透 -b 5 -o

shell
python crawl.py 今彩539 -b 5 -o

shell
python crawl.py 雙贏彩 -b 5 -o

### 爬取指定彩券的年月的開獎紀錄

爬取 2020 年 4 月份的開獎紀錄

shell
python crawl.py 威力彩 -t 2020-04

shell
python crawl.py 大樂透 -t 2020-04

shell
python crawl.py 今彩539 -t 2020-04

shell
python crawl.py 雙贏彩 -t 2020-04

### 爬取指定彩券的年月的開獎紀錄並輸出 JSON

爬取 2020 年 4 月份的開獎紀錄並輸出 JSON

shell
python crawl.py 威力彩 -t 2020-04 -o

shell
python crawl.py 大樂透 -t 2020-04 -o

shell
python crawl.py 今彩539 -t 2020-04 -o

shell
python crawl.py 雙贏彩 -t 2020-04 -o

### 指令說明

shell
python crawl.py -h

問題 Issue

實作 TaiwanLotteryCrawler CLI 工具列, 可以直接在 CLI 取得的開獎資訊

重現步驟 Reproduce

重現該行為的步驟(Steps to reproduce the behavior):

  1. 執行 '....'
  2. See error
  3. ...

預期行為 Expected Behavior

環境 Environment

  • Python Version:
  • Operating System:
  • TaiwanLotteryCrawler Version:

截圖 Screenshot

Example

- 爬取結果可直接輸出產生成 json 格式檔案進行後續使用。
- 針對單一的彩券遊戲可以爬取幾個月前的開獎紀錄。


### 爬取當月份的開獎紀錄

shell
python crawl.py

### 爬取當月份的開獎紀錄並輸出 JSON

shell
python crawl.py -o

### 往回爬取指定彩券的幾個月前的開獎紀錄

爬取 5 個月前的開獎資料

shell
python crawl.py 威力彩 -b 5

shell
python crawl.py 大樂透 -b 5

shell
python crawl.py 今彩539 -b 5

shell
python crawl.py 雙贏彩 -b 5

### 往回爬取指定彩券的幾個月前的開獎紀錄並輸出 JSON

爬取 5 個月前的開獎資料並輸出 JSON

shell
python crawl.py 威力彩 -b 5 -o

shell
python crawl.py 大樂透 -b 5 -o

shell
python crawl.py 今彩539 -b 5 -o

shell
python crawl.py 雙贏彩 -b 5 -o

### 爬取指定彩券的年月的開獎紀錄

爬取 2020 年 4 月份的開獎紀錄

shell
python crawl.py 威力彩 -t 2020-04

shell
python crawl.py 大樂透 -t 2020-04

shell
python crawl.py 今彩539 -t 2020-04

shell
python crawl.py 雙贏彩 -t 2020-04

### 爬取指定彩券的年月的開獎紀錄並輸出 JSON

爬取 2020 年 4 月份的開獎紀錄並輸出 JSON

shell
python crawl.py 威力彩 -t 2020-04 -o

shell
python crawl.py 大樂透 -t 2020-04 -o

shell
python crawl.py 今彩539 -t 2020-04 -o

shell
python crawl.py 雙贏彩 -t 2020-04 -o

### 指令說明

shell
python crawl.py -h

您目前正在實現這些功能嗎?
期待您能實現CLI 工具列
祝您有愉快的每一日

問題 Issue

實作 TaiwanLotteryCrawler CLI 工具列, 可以直接在 CLI 取得的開獎資訊

重現步驟 Reproduce

重現該行為的步驟(Steps to reproduce the behavior):

  1. 執行 '....'
  2. See error
  3. ...

預期行為 Expected Behavior

環境 Environment

  • Python Version:
  • Operating System:
  • TaiwanLotteryCrawler Version:

截圖 Screenshot

Example

- 爬取結果可直接輸出產生成 json 格式檔案進行後續使用。
- 針對單一的彩券遊戲可以爬取幾個月前的開獎紀錄。


### 爬取當月份的開獎紀錄

shell
python crawl.py

### 爬取當月份的開獎紀錄並輸出 JSON

shell
python crawl.py -o

### 往回爬取指定彩券的幾個月前的開獎紀錄

爬取 5 個月前的開獎資料

shell
python crawl.py 威力彩 -b 5

shell
python crawl.py 大樂透 -b 5

shell
python crawl.py 今彩539 -b 5

shell
python crawl.py 雙贏彩 -b 5

### 往回爬取指定彩券的幾個月前的開獎紀錄並輸出 JSON

爬取 5 個月前的開獎資料並輸出 JSON

shell
python crawl.py 威力彩 -b 5 -o

shell
python crawl.py 大樂透 -b 5 -o

shell
python crawl.py 今彩539 -b 5 -o

shell
python crawl.py 雙贏彩 -b 5 -o

### 爬取指定彩券的年月的開獎紀錄

爬取 2020 年 4 月份的開獎紀錄

shell
python crawl.py 威力彩 -t 2020-04

shell
python crawl.py 大樂透 -t 2020-04

shell
python crawl.py 今彩539 -t 2020-04

shell
python crawl.py 雙贏彩 -t 2020-04

### 爬取指定彩券的年月的開獎紀錄並輸出 JSON

爬取 2020 年 4 月份的開獎紀錄並輸出 JSON

shell
python crawl.py 威力彩 -t 2020-04 -o

shell
python crawl.py 大樂透 -t 2020-04 -o

shell
python crawl.py 今彩539 -t 2020-04 -o

shell
python crawl.py 雙贏彩 -t 2020-04 -o

### 指令說明

shell
python crawl.py -h

您目前正在實現這些功能嗎? 期待您能實現CLI 工具列 祝您有愉快的每一日

是的, 這邊是預計要實作的 CLI 功能.

不好意思問一下為甚麼會出現這一個訊息
TimeoutError: [WinError 10060] 連線嘗試失敗,因為連線對象有一段時間並未正確回應,或是連線建立失敗,因為連線的主機無法回應。

Hi @pctodayjoe

要不要貼一下你的使用方式? 我這邊看是正常的喔