twitter => 1.18.0 - Detailed Info pandas => 0.23.0 - Detailed Info Installing package:
pip install twitter
pip install pandas
Start the bot by running 'driver.py'.
python driver.py <[-l][-r]> <filename> <keyword> <prefix> <suffix> <num_tweets>
python driver.py -l thor "Bruce Banner" The #Avengers 5
- Model options:
- -l : Load model from file. Use this if using an existing model.
- Filename : Name of pickle file to load markov model.
- Keywords : Seedwords which are an intergral part of tweet. Keywords may be single or multiple.
- Prefix : Word/s to start the tweet with. Prefix may be single or multiple words.
- Suffix : Word/s to add at the end of tweet. Suffix may be single or multiple words.
- num_tweets : Number of tweets to be written.
- -r : Read file to create model. Use this if including your own text file.
- Filename : Name of text file to construct markov model.
- Keywords : Seedwords which are an intergral part of tweet. Keywords may be single or multiple.
- Prefix : Word/s to start the tweet with. Prefix may be single or multiple words.
- Suffix : Word/s to add at the end of tweet. Suffix may be single or multiple words.
- num_tweets : Number of tweets to be written.
- -c : Collect tweets from TwitterStream.
- no : Number of tweets to collect.
- -a : Amplify tweets i.e. Retweet tweets stored using -c.
- no : Number of tweets to amplify.
- timeout : Time to wait in seconds before retweeting.
- -l : Load model from file. Use this if using an existing model.