Package for generating randomized tweets of a user on twitter.
Project description
# Tweet Generator The drump tweet generator uses a Markov chain finite state model to take a particular user id from twitter and generate tweets based off of that person’s previous tweets. The tweets are stored in a JSON document which allows for random walks of the tweets to occur.
## Goals:
Simplify creating a basic Markov Chain Twitter Bot.
Easy to read and provide an introduction to a simple way to create something intelligent!
## Some features include:
Option to remove urls.
Option for proper capitalization
Output of the generated tree into a pretty JSON Format that you can review.
Scraping of the Twitter API using the Tweepy Library
## Installation
`bash git clone https://www.github.com/oliviersm199/Tweet-Generator cd Tweet-Generator virtualenv venv source venv/bin/activate pip install -r requirements.txt `
## Usage
`python TPCK,TSCK,TPAK,TSAK = '<public_consumer_key>','<secret_consumer_key>','<public_access_key>','<secret_access_key>' import markov_chain_bot twitter_bot = markov_chain_bot.PersonTweeter('25073877',TPCK,TSCK,TPAK,TSAK) random_tweet = twitter_bot.generate_random_tweet() print(random_tweet) `
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tweet_generator-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b1421966454c018b9d21930639dda1ab75fed710e3f55524d93608e03cd74ac |
|
MD5 | 1e3419399bdee595b29bd8f3dd8cd072 |
|
BLAKE2b-256 | c7b104653e68ba156f78051d5ea8cc93bfe9d7cffef60c317ec89492c99c3635 |