Skip to content

IamPhytan/wikiquote-twitter-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wikiquote Twitter Bot

A simple way to tweet famous quotes from Wikiquote

GitHub release GitHub Issues Downloads License

Motivation

I wanted to have a bot that would tweet different quotes from Wikiquote each morning to start the day on a good note. This small scripts uses Tweepy's API and fredericotdn's Wikiquote API to scan quotes on Wikiquote and tweet them .

Installation

The following steps explain how to configure the script before running it:

  1. Clone the repo: git clone https://github.com/IamPhytan/wikiquote-twitter-bot.git
  2. Download the requirements (or create a virtualenv before) : pip3 install -r requirements.txt
  3. Follow this tutorial to get your :
    • Consumer key
    • Consumer secret
    • Access token
    • Access token secret
  4. Add these values to the configuration file
  5. Insert in the same configuration file the time you want to send quotes and the names of the people who inspire you.
  6. Run the script: python3 main.py

License

MIT