Skip to content
Compiles all lyrics from a given artist into a text document, generates Markov text from the file, and tweets it
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
source
.gitignore
README.md
TweetIDs.txt
Tweets.txt
get_artist_data.py
girabot.py
scrape_lyrics.py

README.md

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.

You can’t perform that action at this time.