Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jiko/lovecraft_ebooks

Markov tweetbot based on H. P. Lovecraft's corpus
https://github.com/jiko/lovecraft_ebooks

Last synced: about 2 months ago
JSON representation

Markov tweetbot based on H. P. Lovecraft's corpus

Awesome Lists containing this project

README

        

LOVECRAFT EBOOKS
======

If you want text files of individual works by Lovecraft, see [Nathaniel Smith's Lovecraft plaintext corpus repo](https://github.com/nathanielksmith/lovecraftcorpus)

Note: I have not tested this code on Twitter API v1.1

This is a twitter bot based on [Shabda Raaj's markovgen.py](http://agiliq.com/blog/2009/06/generating-pseudo-random-text-with-markov-chains-u/) and [the_shrinkbot](https://github.com/jiko/the_shrinkbot). Shout-outs to [Harry Schwartz](https://github.com/hrs), [Vivek Haldar](https://github.com/vivekhaldar), [widefidelity](https://twitter.com/widefidelity/status/266230134053425153), and [Shabda Raaj](http://agiliq.com/blog/author/shabda/).

Requires:
* Python 2.6 or later. Not tested with Python 3.
* [pip](http://www.pip-installer.org/en/latest/installing.html)

Once you have your environment setup, run:

pip install -r requirements.txt

See init_twit.py for info on setting up your Twitter application.

Corpus sourced from [Pirate](http://thepiratebay.se/torrent/7760619/H.P._Lovecraft_Complete_Collection_on_MOBI#filelistContainer) [Bay](http://thepiratebay.se/torrent/7711512/H._P._Lovecraft_ebooks_collection_[republicV]#filelistContainer). I claim no rights over this material besides fair use. All code is under the MIT license.