314pies / Taiwan-receipt-lottery-statistic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Taiwan receipt lottery statistic

A web-app made by Flask framework showing the annual statistics of Taiwan receipt lottery, all the data shown in the chart are gathered from the Taiwan Ministry of Finance official site at real-time. (source)

This project is ready to be directly deployed on Google App Engine

Showcase

Google App Engine Deploy Link: https://tw-lottery-statistic.appspot.com/

Updated: Unfortunately, due to the changes of the source website, this Web App is no longer working :(. The above gif is a recorded demonstration showing how it used to work.

Installation

  1. Clone this repository
    git clone https://github.com/314pies/Taiwan-receipt-lottery-statistic/
    
  2. Setup a Python 3 environment and install all the dependency listed in requirements.txt
    pip3 install -r requirements.txt
    
  3. Run main.py, then enter http://127.0.0.1:5000/ in your browser.
    python main.py
    
    The following messages should be printed to the console.
     * Restarting with stat
     * Debugger is active!
     * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
    

Credits

yxliaoyx's web crawler
Flask
Beautiful Soup
Matplotlib
How to show matplotlib in flask
TheWeatherApp
Deploying a Web Application on Google App Engine
How to output requirements.txt automatically?

About


Languages

Language:Python 90.1%Language:Tcl 6.2%Language:C 3.0%Language:C++ 0.5%Language:CSS 0.1%Language:JavaScript 0.1%Language:PowerShell 0.0%Language:Batchfile 0.0%Language:HTML 0.0%Language:DTrace 0.0%