Scrapy spider and website to show stats of QB House's availability.
- Python 2.7
- Virtualenv
- jq
git clone https://github.com/capybala/qbmeter
cd qbmeter
virtialenv venv
. venv/bin/activate
pip install -r requirements.txt
- Create Cloudant database e.g.
qbmeter
. - Generate API key for the database.
- Grant write access on the database to the API user, and read access to Everyone.
- Enable CORS from origin "http://www.qbhouse.co.jp/". See Cloudant's docs.
- Put
.env
file in theqbmeter
dir as following:
# e.g. CLOUDANT_URL=https://orangain.cloudant.com/qbmeter
CLOUDANT_URL=YOUR_CLOUDANT_DB_URL
CLOUDANT_USER=YOUR_API_KEY
CLOUDANT_PASSWORD=YOUR_API_PASSWORD
./scripts/run_spider.sh
./scripts/update_data.sh