/albert-heijn-calendar-sync

Sync your Albert Heijn schedule with your Google calendar.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

albert-heijn-calendar-sync

Sync your Albert Heijn schedule with your Google calendar.

How to use

  • Change your settings in webscraper/settings.yaml
    • Change the albert-heijn credentials.
    • Change the path to your phantomjs.exe. On linux, install PhantomJS by installing the following:
      sudo apt-install nodejs
      sudo apt-get install nodejs-legacy
      sudo apt-get install npm
      sudo npm -g install phantomjs-prebuilt
      
  • Request a google calendar api key and store the client_secret.json in webscraper/. (Guide on how to request a key)
  • Install the required dependencies.

Dependencies

  1. Google Client Library
  2. Selenium
  3. Beautifulsoup4
  4. PyYAML
  5. Requests
  6. Httplib2
  7. Six
  8. Uritemplate
  9. pyRFC3339
  10. pytz
  11. apiclient

Install requirements

pip install -r requirements.txt

View the browser

  • Change the showbrowser setting in webscraper/settings.yaml to true
  • Change geckopath to your geckodriver path.
  • Make sure you have Firefox installed.