Skip to content

typhoid/shitpost-learner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 

Repository files navigation

Shitpost Learner

shitpost /SCHIT-pohst/ - a comment that contains nothing of intended value, but at the same time is not intended to troll with.

This script uses Markov chains to learn how to shitpost. Using a user-specified board, this script trains a Markov chain on all posts on all pages of said board and generates shitposts on command. Also includes a random image from the same board. This doesn't actually post to 4chan.

This makes extensive use of 4chan's read-only JSON API.

For a non-CLI version that runs in your browser, take a look at the web branch.

Dependencies

  • Python 3
  • PyMarkovChain
  • urllib

How to Use

  1. Install the required dependencies if you don't already have them.
  2. Run ./shitposter.py.
  3. Enter a board to train on - ex. /a/, /b/, /co/, /tv/, etc.
  4. Once training is finished, hit enter to generate a shitpost.

The command train will re-train the Markov chain on the same board.

The command board <board> will switch to the specified board.

The command exit will exit the script.

Credits

About

Learn how to shitpost

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%