Skip to content

A script that uses markov-chains to parse tweets written by any user and create tweets using what they say.

Notifications You must be signed in to change notification settings

qiqetes/Tweet-generator_ML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Tweet creator with ML

This is a script that uses markov-chains to parse tweets written by any user and create tweets using what they say.

Usage

You need to create a .json file called secret.json storing there as variables the API_key, API_secret_key, Access_token and Access_token_secret that you can obtain from the Twitter API Then the command ~$ python main.py -h will help you executing it

Libraries used

  1. Tweepy: to ease the GET requests to the Twitter API
  2. Nltk: to ease the tokenization of the tweets

Known Bugs:

  • There is still no option to make the tweet result of multiple users
  • Sometimes the tweet generated for one user is the result of multiple users that are retrieved
  • Imrove the file handling

About

A script that uses markov-chains to parse tweets written by any user and create tweets using what they say.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages