sevenrooms-scrape

Log your clients' data from sevenrooms.com by scraping directly from the website.

Installation/Setup

git clone https://github.com/basilwong/sevenrooms_scrape.git

Setting up chromedriver

Download chromedriver and save it to the assets folder.

Setting up print_google_sheets

The below steps are for getting the credentials for accessing Google Sheets data.

  1. Go to Google API Console
  2. Create new project
  3. Click Enable API then enable the Google Drive API.
  4. Create credentials for a Web Server to access Application Data.
  5. Name the service account and grant it a Project Role of Editor.
  6. Download JSON file.
  7. Copy JSON file to the assets directory and rename: client_secret.json
  8. On the Google API Console search for and enable Google Sheets API.

Dependencies

pip3 install os datetime selenium bs4 oauth2client

Use

To gather the data of reservation clients, from the last year, and log it to a google sheets file go to the cloned directory and run:

cd sevenrooms_scrape
python3 example.py

Built With

Share this project:

Updates