Skip to content

EricHanLiu/quotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Quotes

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.

How to use?

  1. git clone this repo.
  2. Install required packages:
    • Install tweepy with pip install tweepy.
  3. Create a twitter app in order to use their API and get the keys to use this script.
  4. Edit your config.py with the generated keys.
  5. 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
  1. You're all set! A new quote will display every 10 minutes.

Quotes

The quotes were taken from the twitter page @GreatestQuotes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages