Skip to content

2021五倍券數位綁定加碼券抽籤結果簡易查詢工具,詳情以五倍券官網公告為準

Notifications You must be signed in to change notification settings

linbeta/5000_quick_search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6239cae · Jan 8, 2022

History

37 Commits
Oct 24, 2021
Oct 24, 2021
Oct 25, 2021
Jan 8, 2022
Oct 29, 2021
Oct 29, 2021
Oct 29, 2021
Jan 8, 2022
Oct 26, 2021
Oct 26, 2021
Oct 29, 2021
Nov 2, 2021
Nov 3, 2021
Nov 4, 2021

Repository files navigation

五倍券數位綁定加碼券中籤查詢小工具

專案更新

最近GCP的試用帳號到期了,剛好要來整理作品集,所以重新deploy,並且綁定我自己的網域。 網址:https://5x-quick-search.betalin.work

簡介

上週看到有人做了一個一個查詢工具,看了以後手癢想說用Python來寫寫看應該很好玩,就動手做了。

官方的查詢系統需要輸入完整身分證字號和健保卡號,還要圖形驗證碼,查起來很麻煩。這個簡易查詢只需要輸入身分證末三碼就可以查了。

App link and screenshots

這兩天順便練習用GCP來deploy這個小app,~~網址:https://quick-search-5-yfntlql7tq-de.a.run.app~~(網址已失效)

版本更新紀錄

  • 01/07/2022 重新部署,並綁定網域。Test on CI/CD
  • 10/26 增加除錯功能: 如果即時爬取官網資料出問題時,會使用備援json檔來讀取中獎號碼備份,至少網站不會掛掉。
  • 10/27 更新script parsing規則(多4個空格)&手動增加備援json檔中籤號碼。目前看來官網新增中獎號碼時,script裡面的空白欄位會變動(怕),一直改code不是辦法XD,需要設計新的備援方案...
  • 10/28 minor updates, bug fixed.

參考資料

Python Web Scraping: JSON in SCRIPT tags

How to get JavaScript variables from a script tag using Python and Beautifulsoup

Convert a String representation of a Dictionary to a dictionary?

振興五倍券加碼券速查

Build and deploy a Flask application on Google Cloud Run - Part 2 - Deploy a Python service

Flask 為甚麼需要 WSGI 與 Nginx

nginx 使用子網域部署多個網站

About

2021五倍券數位綁定加碼券抽籤結果簡易查詢工具,詳情以五倍券官網公告為準

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published