Skip to content

victoralfonzo/mindful-twitterbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mindfulness Twitter Bot

A Python bot that tweets mindfulness quotes sourced from Goodreads

Dependencies

  • Beautiful Soup
  • Tweepy

Bot Setup

Simply install the dependencies using pip

pip install beautifulsoup4
pip install tweepy

Next, register an application with twitter to receive the necessary authentification keys to set up the bot.

You will need

  • Consumer Key (API Key)
  • Consumer Secret (API Secret)
  • Access Token
  • Access Token Secret

In bot.py, replace consumer_token, consumer_secret, key, and secret, with your application's respective keys.

auth = tweepy.OAuthHandler(consumer_token, consumer_secret)
auth.set_access_token(key, secret)

For more information about the authentification process, refer to tweepy's tutorial.

Quote Scraping

To scrape the quotes from Goodreads, simply run

python quoteScraper.py

in the project directory.

This will append all quotes from page of Goodread's mindfulness quotes to quotes.txt, removing all unnecessary characters.

Usage

To start the bot, simply run

python bot.py

in the project directory.

About

A Python bot that tweets mindfulness quotes sourced from Goodreads

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages