Git Product home page Git Product logo

twitter-telegram-bot's Introduction

Telegram-Twitter-Bot

A Telegram Bot which listens to tweets from certain Twitter accounts and sends them to a specific Telegram channel in real time.

Installation

You only need to install requierements.txt file in the Terminal

pip install -r requirements.txt

Setting Up

Once the installation process has finished, you need to set your own API data. To do so, just go to config.example.py and add your credentials.

You will need Twitter API data from the Twitter developer webpage. More information here: Twitter API

Once you have got your API variables, just add them to config.example.py. The necessary API Twitter data is: API_KEY API_SECRET TOKEN TOKEN_SECRET

To get a Telegram token, just go to your Telegram app and look for the BotFather bot. Follow the instructions to get your TELEGRAM_BOT_API_KEY

Run App

Next, rename config.example.py to config.py and inspect main.py file. You will need to add the Twitter accounts you want to listen to and set the Telegram Channel ID receiver.

Finally, just run main.py:

python3 main.py

Note: To find out Twitter account IDs, you may use TweeterID

twitter-telegram-bot's People

Contributors

jblanco89 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

twitter-telegram-bot's Issues

Problem with main.py

Good evening buddy, I have a little problem getting the script to run. I am getting this problem in main.py

line 24, in
tweet = listener.StreamListener(config.API_KEY, config.API_SECRET, config.TOKEN, config.TOKEN_SECRET)
TypeError: Stream.init() takes 3 positional arguments but 5 were given

Special char

Hi i have a little problem with special char i only put & ( in the special char) but the bot erase also the #message . How I can solve this?

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.