GithubHelp home page GithubHelp logo

theringer / markovator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tom-martin/markovator

0.0 2.0 0.0 168 KB

Python twitter bot that generates nonsensical tweets using markov chains

Home Page: http://heychinaski.com

Python 100.00%

markovator's Introduction

Making nonsense out of your carefully crafted tweets. 

Python app that controls a twitter bot that uses markov chains to produce interesting tweets based on it's followers tweets and the twitterers that mention it. When a user tweets a mention of the bot it will respond with a "markovation" of the last 800 tweets by that user (that don't contain links or mentions of other users).  It will also follow that user.  Every two hours it will tweet a markovation of the latest 800 tweets from all of the users it follows.

Live markovator bot is running here: http://twitter.com/markovator
More info here: http://www.heychinaski.com/blog/2010/10/18/markovator-python-google-app-engine-markov-chains-twitter/

Easiest way to use the script is to repeatedly call it using something like cron. Make sure to set the screen_name, token and consumer settings in the twitter_settings.py.  The screen name should be the username of the twitter account that the bot is hosted on. Consumer should be the key and secret of a twitter app that you have registered and the token should be the key and secret of the twitter account for that app. See https://dev.twitter.com/pages/oauth_single_token for info on getting a single access token and avoiding the oauth flow.

Example crontab entry:

    * * * * * cd /whatevs/markovator && python main.py >> markovator.log 2>&1


markovator's People

Contributors

eddyborja avatar tom-martin avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.