Taiwan Lottery Crawler 台灣彩券爬蟲
Project description
Taiwan Lottery Crawler
介紹
這個專案是用來爬取 台灣彩券 官網上歷史的開獎紀錄,目前支援威力彩、大樂透、今彩539、雙贏彩、3星彩、4星彩、38樂合彩 7 種彩券遊戲。
功能
- 爬取威力彩、大樂透、今彩539、雙贏彩、3星彩、4星彩、38樂合彩 7 種彩券遊戲的開獎紀錄。
環境需求
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.super_lotto(['112', '6'])
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto649(['112', '6'])
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.daily_cash(['112', '6'])
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto1224(['112', '6'])
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto3d(['112', '8'])
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto4d(['112', '8'])
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto38m6(['112', '8'])
print(result)
資料來源
License
MIT License
Project details
Release history Release notifications | RSS feed
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.3.0.tar.gz
(10.7 kB
view hashes)
Built Distribution
Close
Hashes for taiwanlottery-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad744f1de42fcd0a954f4ef0333314851d39fe7dd8ab4233a1d5261387dba342 |
|
MD5 | c88abc4b43026861ee1b0741793a120c |
|
BLAKE2b-256 | 75dfd980c36d214faf69c9660d41f8c3aae7ba33776eb9f62541aae8e496f490 |