Skip to content

Twitter bot that creates headlines based on recent news

Notifications You must be signed in to change notification settings

jgbarcos/botnews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BotNews

Twitter bot that creates headlines based on recent news.

Details

News are gathered from EventRegistry. Firts it queries trending concepts and then gathers news titles about those concepts to create a dataset of news titles.

Then it creates a Markov Chain model to generate the headlines that are going to be tweeted.

Prerequisites

pip install tweepy markovify eventregistry

Usage

Create secrets.py by filling the fields of TEMPLATE-secrets.py

Then execute bot.py like:

bot.py 5 -u -f news_dataset.txt

This would publish 5 tweets after updating (-u) the news dataset file (-f).

Check help by passing -h or --help to bot.py.

About

Twitter bot that creates headlines based on recent news

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages