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 pip install tweet-generator `
## Usage
`python from tweet_generator import tweet_generator TPCK, TSCK, TPAK, TSAK = '<public_consumer_key>','<secret_consumer_key>','<public_access_key>','<secret_access_key>' 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.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3d2930a70783a27d08a9a73ce02b82b8def06d490c0dd3f1dec81ff0c86e091 |
|
MD5 | 56ea51630c0c3e746634a657f810d44b |
|
BLAKE2b-256 | a4d14780650087b981f37fc39ded689d3ac3fbda600f0ff6ac752c7ac264df73 |