Taiwan Lottery Crawler
介紹
這個專案是用來爬取 台灣彩券 官網上歷史的開獎紀錄,目前支援威力彩、大樂透、今彩539、雙贏彩、3星彩、4星彩、38樂合彩、39樂合彩、49樂合彩 9 種彩券遊戲。
功能
- 爬取威力彩、大樂透、今彩539、雙贏彩、3星彩、4星彩、38樂合彩、39樂合彩、49樂合彩 9 種彩券遊戲的開獎紀錄。
環境需求
Python >= 3.6
安裝
pip install taiwanlottery
範例
爬取當月份的開獎紀錄
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.super_lotto()
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto649()
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.daily_cash()
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto1224()
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto3d()
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto4d()
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto38m6()
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto39m5()
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto49m6()
print(result)
爬取指定年月的開獎紀錄(YYYY-MM)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.super_lotto(['2023', '06'])
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto649(['2023', '06'])
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.daily_cash(['2023', '06'])
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto1224(['2023', '06'])
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto3d(['2023', '08'])
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto4d(['2023', '08'])
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto38m6(['2023', '08'])
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto39m5(['2023', '08'])
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto49m6(['2023', '08'])
print(result)
資料來源
License
MIT License
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
taiwanlottery-1.5.3.tar.gz
(10.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file taiwanlottery-1.5.3.tar.gz.
File metadata
- Download URL: taiwanlottery-1.5.3.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60e74f29df25461778c65bcb51c9287cf43135d836c7159f072ade96899286a8
|
|
| MD5 |
83cb30000419e0716e6f6fdb57603303
|
|
| BLAKE2b-256 |
3c562778e678d07d9a8caf38b54a8dbd3d220aeba634e6f5fcb293376387f2f8
|
File details
Details for the file taiwanlottery-1.5.3-py3-none-any.whl.
File metadata
- Download URL: taiwanlottery-1.5.3-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d0140056abca0ea148cf83655c9239ef5114dea91d54be99ea8e9bcd9012556
|
|
| MD5 |
15b6f5f20069ee269a156fef0d0863b9
|
|
| BLAKE2b-256 |
d9f34aa21c67d78f83f642c19841193cfe7cc22555d4f8cd845a5380627bbfac
|