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]:
- argi
- [Genius Artist URL] - takes in URL for artist on https://genius.com, in the format of https://genius.com/artists/xxxx
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
- markovify
https://github.com/jsvine/markovify - BeautifulSoup4
https://www.crummy.com/software/BeautifulSoup/bs4/doc/ - OAuthlib
https://github.com/requests/requests-oauthlib - Python Twitter
https://github.com/bear/python-twitter
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.