Skip to content

hsucw/TWEleReceipt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#TWEleReceipt

This is a NCTU project for inspecting the Taiwan's Eletronic Receipt system.

#Installation

Python 2.7, Virtualenv, Tesseract: sudo apt-get install python tesseract, brew install python tesseract`

Python Virtual Env: pip install virtualenv

#Component

  • Connector.py: to connect, get, post data
  • HTMLDataResolver.py: for get the result from a .html
  • ImageResolver.py: for captach resolver

#Usage python Connector.py [Receipt ID] [DATE]

TWEleReceipt

This project is built under python2.7

This is a project to get receipts data from authority. Which can calculate and summarize the data.

The server was built by Django, and default database was sqlite

Client

This client should run after the server was up.

Initial

    Modify the {server_ip} and {server_port} in TaskSolver.py

Start Client

    python2 TaskSolver.py

Server

Initial

	virtualenv .
	source bin/activate
	pip install -r requirements.txt

Initial Database

	python manage.py makemigrations taskServer
	python manage.py migrate

Start Server

	python manage.py runserver  [server_ip:server_port]

Add Task URL

    server_ip:server_port/

Author

Chia-Wei Hsu
Daniel
Stanley
TungJerry