This python script uses the Twitter API (using the tweepy library) and python-notify to send inspirational quotes to your computer screen through a notification bubble, provided by a quote-posting Twitter page.
Run it with python3
.
git clone
this repo.- Install required packages:
- Install tweepy with
pip install tweepy
.
- Install tweepy with
- Create a twitter app in order to use their API and get the keys to use this script.
- Edit your
config.py
with the generated keys. - Edit your crontab and enter the following:
*/10 * * * * /usr/bin/python /home/user/path-to/quotes.py
This will make the program run every 10 minutes (you can change that by altering the first position).
Note: If you encounter an error with your crontab not actually running, you can use the following instead
*/10 * * * * eval "export $(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -u $LOGNAME gnome-session)/environ)"; /usr/bin/python /home/user/path-to/quotes.py
- You're all set! A new quote will display every 10 minutes.
The quotes were taken from the twitter page @GreatestQuotes.