Git Product home page Git Product logo

tweetbot's Introduction

PRE-ALPHA
How-to documentation being progressively updated


Whats is tweetbot?
Just another configurable twitter bot written in Python

Why was it created?
Due to workpressure and general lethargy, tweeting may start to feel more like a chore.
Tweetbot was created to take this burden away from you, this is a configurable bot which allows you to specify a list of topic which interests you.
Then the bot reaches out to "HackerNews" to fetch the top news, filter out the topics of interests and tweet them out, even creating appropriate "Hashtags" to be attached.
The bot also uses url shortening service provided by Bitly to make sure the tweet remains under the specified character limit on twitter.

Limitations:
- Currently only news source available is HackerNews, and is tightly integrated in the codebase.
- News is fetched once a day, is configurable.
- Can only tweet on your account, integration of stream for active listening of your twitter feed is not available.

How to use?

- Prerequisits:
  - Python 3.x (tested on python 3.7.x and 3.9)
  - Pip for installation of third party libraries
  - Third party packages like hackernews, bitlyshortner, scheduler etc
  - Virtualenv (optional) (I use virtualenv wrapper personally)
  - Developer account for Bitly
  - Twitter dev API token and secrets

- Get up and running:
    - Clone the repo
    - install required packages using the following command pip3 install -r requirements.txt
    - create a .env file at project root diretory
    - Add the following lines
        TWITTER_CONSUMER_KEY=<key>
        TWITTER_CONSUMER_SECRET=<secret>
        TWITTER_ACCESS_TOKEN=<token>
        TWITTER_ACCESS_TOKEN_SECRET=<token secret>
    - Replace values with your credentials from twitter dev portal
    - to run the code, from projects root directory on terminal:
        python main.py


tweetbot's People

Contributors

philosopher-g33k avatar

Watchers

James Cloos 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.