Giter Site home page Giter Site logo

myou123 / tweetbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dracarys18/tweetbot

0.0 0.0 0.0 39 KB

A simple Telegram Bot to Stream the tweets from any twitter accounts to Telegram Channel

License: MIT License

Python 91.30% Shell 8.22% Procfile 0.48%

tweetbot's Introduction

TweetBot

A simple Telegram Bot to Stream the tweets from any account from twitter to your telegram channel.

Guide

  1. Get Twitter API Keys and Access Keys from here
  2. Go to @BotFather in telegram and create a Bot
  3. Open keys_sample.env and fill the API Keys and Access Keys and Chat ID where you want the bot to send messages.
  4. Rename key_sample.env to keys.env
  5. Open userlist.py and add the usernames of the person's you want to Stream tweets from for Example:- userslist = ['elonmusk','nasa']
  6. Run the Bot by executing:
pip3 install -r requirements.txt
python3 main.py

Heroku usage

Just do all the things given in the Guide except the 6th part and follow the further steps here for Heroku deployment.

  1. Create a Heroku APP
  2. Git add and commit the files in the project directory and make sure you have the Heroku CLI installed.
git add.  -f
git commit -m "Initial Commit"
git push heroku HEAD:master --force
  1. Then go to the app page in your heroku dashboard and turn on the dynos.

Sample Channel

This channel is just a sample channel that streams the tweets from the Twitter accounts which are usually regular with Manchester United football club latest news and stuff.

Just visit This Telegram Channel to check how the bot works

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.