Skip to content

ChangedNameTo/MarkovLearner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 

Repository files navigation

Markov Learner

This script uses Markov chains to learn how to post. Using a user-specified board, this script trains a Markov chain on all posts on all pages of said board and generates post 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.

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 post.

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

Contributors 3

  •  
  •  
  •  

Languages