A Twitter Bot that posts inspirational quotes. Currently inactive: @inspirationqtz.
- Uses BeautifulSoup to scrape HTML from goodreads.com
- Parse out 30 quotes per page, for 100 pages (Starting URL)
- Filters out quotations that are not Twitter friendly (> 140 characters)
- Appends quotations to quotes.txt
- Establishes connection to Twitter API via Tweepy
- Reads in quotes.txt generated by quoteGrabberBot.py
- Generates a tweet (in the format "Quote + Hashtag") and sends tweet to Twitter
- Continues to tweet every 30 minutes until no more tweets available or Keyboard Interrupt
- On Keyboard Interrupt, unused tweets rewritten to quotes.txt
- Replace
CONSUMER_KEY, CONSUMER_SECRET, ACCESS_KEY, ACCESS_SECRET
in inspirationBot.py with your appropriate Twitter API credentials. - Run:
$ python3 quoteGrabberBot.py
- Run:
$ python3 inspirationBot.py