這個專案是用來爬取 台灣彩券 官網上歷史的開獎紀錄,目前支援威力彩、大樂透、今彩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)
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)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto39m5(['112', '8'])
print(result)
from TaiwanLottery import TaiwanLotteryCrawler
lottery = TaiwanLotteryCrawler()
result = lottery.lotto49m6(['112', '8'])
print(result)
MIT License