Skip to content
This repository has been archived by the owner on Jan 13, 2020. It is now read-only.
/ qbmeter Public archive

Scrapy spider and website to show stats of QB House's availability.

Notifications You must be signed in to change notification settings

capybala/qbmeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QB Meter

Scrapy spider and website to show stats of QB House's availability.

http://qbmeter.capybala.com/

Requirements

  • Python 2.7
  • Virtualenv
  • jq

Usage

Setup local development environment

git clone https://github.com/capybala/qbmeter
cd qbmeter
virtialenv venv
. venv/bin/activate
pip install -r requirements.txt

Setup Cloudant database

  1. Create Cloudant database e.g. qbmeter.
  2. Generate API key for the database.
  3. Grant write access on the database to the API user, and read access to Everyone.
  4. Enable CORS from origin "http://www.qbhouse.co.jp/". See Cloudant's docs.
  5. Put .env file in the qbmeter 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

Run spider

./scripts/run_spider.sh

Insert data into Cloudant

./scripts/update_data.sh

About

Scrapy spider and website to show stats of QB House's availability.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published