Giter Club home page Giter Club logo

markovtweets's Introduction

MarkovTweets

A Python twitter bot that uses a markov chain based sentence generator to fill in tweets.

DEPRECATED: No longer maintained.

Feature list:

  • Tag reply: replies to tweets that mention the bot.

  • Automatic tweets: randomly tweets sentences. Time interval can be adjusted at settings.

  • Current trends: trending hashtags can be added to tweets. The probability of using a hashtag can be adjusted at settings.

Installation:

pip install MarkovTweets

That's it! โœˆ

Download the quickstart script to your machine.

You can put your app account details by passing the API credential, like so:

api_public = "API_KEY"
api_private = "API_SECRET_KEY"
token_public = "ACCESS_TOKEN"
token_private = "ACESS_TOKEN_SECRET"

Set your bot username the same as your twitter username and reference the markov chain source. Here's a markov chain source example.

settings = {
    "markov_chain_source": "example_source.txt",
    "bot_username": "TWITTER_USERNAME",
}

To run MarkovTweets, you'll need to run the quickstart script you've just downloaded.

python quickstart.py

Example project:

Amlo Simulador

markovtweets's People

Contributors

etorresh avatar dependabot[bot] 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.