Logs tumblr fanfictions to a psql database and generates fanfictions using markov chains. You can see it in action here.
Install postgresql, add a user, and log in.
Create a database named
Run the install script to set up tables and columns
psql fanfictions -f create_tables.sql
Install requirements with
pip install -r requirements.txt
settings.py with your information. You can get your Tumblr credentials here.
generate.py will automatically generate and post a fanfiction. No setup is required if you have completed the previous steps.
If you get an error like
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str', it's probably because you don't have enough data. Change
text_model = POSifiedText(text, state_size=3) to
text_model = POSifiedText(text, state_size=2)