Skip to content

Kitsupitsu/ylekov

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple, dependency-free utility that generates Finnish headlines procedurally using data from YLE Uutiset, Iltasanomat, Iltalehti, HS, Hymy, MTV and Seiska, . Also contains Python code for running Twitter and Telegram bots that post a headline hourly.

Building

Build the .jar file:

./build.sh

Usage

This program manages a file called cached_headlines in the folder in which it is run to make the process faster. Update or create it like this:

java -jar ylekov.jar update

To print a headline to the standard output stream, do this:

java -jar ylekov.jar generate

To print n headlines, run this:

java -jar ylekov.jar generate n

To test the bot, run

./bot.py test

and it will print out a sample headline. To run the bot, run

./bot.py run

Note that the bot requires tweepy and python-telegram-bot. Store the required keys and tokens in a file called secrets.py.

About

Funny procedural Finnish headlines

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 84.5%
  • Python 14.5%
  • Shell 1.0%