Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.97 KB

README.md

File metadata and controls

42 lines (32 loc) · 1.97 KB

girabot

Compiles all lyrics from given artist(s) into a single text document, generates Markov text from the file, and tweets it

Arguments for girabot.py [arg1 (optional)] [arg2 (optional assuming arg1==[filename])]:

  • arg1
    • [filename] - the filename of the source text file
    • DESTROY - will delete all tweets on account and will wipe TweetIDs.txt and Tweets.txt (be careful)
  • arg2
    • LOCAL - will generate text for a tweet and print it but will not post it on the linked account

Arguments for scrape_lyrics.py [arg1] [arg2] ... [argn]:

LOAD OAUTH SETTINGS
Assumes Twitter OAuth settings, saved in a file called OAuthSettings.py, saved in the following format:

settings = {
  'consumer_key': 'xxxx',
  'consumer_secret': 'xxxx',
  'access_token_key': 'xxxx',
  'access_token_secret': 'xxxx'
}

REQUIRES

Some Twitter API config borrowed from Jeff's bot, and some GET functions from Jon's tutorial
Twitterbot aspect modelled off of my vicebot

This project is released under a Creative Commons BY-NC-SA License - feel free to use, but please let me know.