WallpaperMachine
The wallpapers you love. A new home on your Mac.
大樂透、威力彩、今彩539、3星彩、4星彩最新開獎號碼,線上對獎、歷史開獎紀錄與號碼統計,每期開獎後自動更新。
Translation pending
LifestyleGitHub @yuchichen777OnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
Repository information has not been collected yet.
No updates detected yet. GitHub releases will appear here.
大樂透開獎查詢・對獎・號碼統計(自動更新的靜態網站)
Translation pending
Taken from the repository README
Loading the full README.
Read the full README ↗自動更新的台灣彩券開獎靜態網站,靠搜尋流量 + 廣告賺錢。只用 Python 標準函式庫,免費部署在 GitHub Pages。
支援的玩法(設定在 games.py):大樂透、威力彩、今彩539、賓果賓果、3星彩、4星彩、38/39/49 樂合彩,以及已停售的雙贏彩(歷史資料)。
| 網址 | 內容 |
|---|---|
/ | 各玩法最新開獎總覽 |
/<玩法>/ | 最新開獎、熱門/遺漏號碼、前 10 期 |
/<玩法>/check.html | 線上對獎、歷史回測 |
/<玩法>/stats.html | 號碼出現次數、遺漏期數等統計 |
/<玩法>/history/<年>.html | 每年開獎紀錄 |
/<玩法>/draw/<期別>.html | 每期號碼與各獎項獎金(長尾流量來源) |
about.html | 免責聲明、隱私權政策(申請 AdSense 需要) |
玩法代號:lotto649 大樂透、superlotto638 威力彩、daily539 今彩539、bingo 賓果賓果、3d 3星彩、4d 4星彩、
lotto38m6/lotto39m5/lotto49m6 樂合彩、lotto1224 雙贏彩。
data/bingo/(官方 API 從 2024-01-01 起)。
網站是每天一頁(/bingo/day/<日期>.html),沒有每期一頁。
第一版的舊網址(/check.html、/draw/...)會自動轉到 /lotto649/。另外會產生 sitemap.xml、robots.txt;設定 AdSense 後也會產生 ads.txt。
python scraper.py # 抓全部玩法(第一次約 10 分鐘,之後只補新的期數)
python scraper.py 3d # 只更新指定玩法
python build.py # 產生網站到 dist/
python -m http.server 8649 -d dist # 開 http://localhost:8649 預覽
lotto649-stats),把這個資料夾推上去。site.json 的 base_url 為 https://<你的帳號>.github.io/lotto649-stats,推上去。GitHub Actions 的機器在國外。如果台灣彩券 API 擋掉國外 IP,scraper 會失敗。 這時可以改成在自己電腦用「工作排程器」定時跑
python scraper.py,再git push。
site.json 的 base_url 改成新網域。sitemap.xml,讓 Google 開始收錄。G-XXXX)填進 site.json 的 ga_measurement_id。ca-pub-XXXX)
填進 site.json 的 adsense_client,網站會自動加上廣告程式碼和 ads.txt。
之後在 AdSense 後台開「自動廣告」即可;頁面裡的 <div class="ad"> 是保留給手動廣告版位的位置。