https://github.com/pybites/packt
Use Selenium to retrieve Packt's free daily ebook/video info and send a notification to Twitter and Slack
https://github.com/pybites/packt
Last synced: 2 months ago
JSON representation
Use Selenium to retrieve Packt's free daily ebook/video info and send a notification to Twitter and Slack
- Host: GitHub
- URL: https://github.com/pybites/packt
- Owner: pybites
- Created: 2019-02-18T23:26:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-22T10:40:38.000Z (over 5 years ago)
- Last Synced: 2025-03-22T17:11:28.116Z (3 months ago)
- Language: Python
- Homepage:
- Size: 4.47 MB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Packt Free Learning Notifier
Set the following env variables in `venv/bin/activate` locally or as _Config Vars_ when [deploying to Heroku](https://devcenter.heroku.com/articles/git):
1. Heroku
Add Heroku `heroku/chromedriver` and `heroku/google-chrome` _buildpacks_, then set:
export CHROME_DRIVER=/app/.chromedriver/bin/chromedriver
export GOOGLE_CHROME_BIN=/app/.apt/usr/bin/google-chrome2. Post to Slack
Create app (API) - admin approval - install app into workspace - add "incoming webhook", then set:
export SLACK_WEBHOOK_URL=https://hooks.slack.com/services/abc/def/ghi
3. Post to Twitter
Create an app via the Twitter API, then set:
export CONSUMER_KEY=abc
export CONSUMER_SECRET=def
export ACCESS_TOKEN=ghi
export ACCESS_SECRET=jkl