Giter VIP home page Giter VIP logo

tweetstotelegram's Introduction

TweetsToTelegram

A Python script that uses the tweepy and telethon libraries to pull tweets from a specific Twitter user's timeline and send them to a Telegram channel

How the code works:

The tweepy and telethon libraries are imported at the top of the file. These libraries are used to interact with the Twitter and Telegram APIs, respectively.

The Twitter and Telegram API keys and secrets are stored in variables at the top of the file. These will need to be replaced with your own API keys and secrets.

The tweepy client is set up using the Twitter API keys and secrets. This client will be used to pull tweets from the Twitter API.

To get your Twitter API keys and secrets, you will need to go to the Twitter Developer Portal: https://developer.twitter.com/

The telethon client is set up using the Telegram API ID, API hash, and bot token. This client will be used to send messages to the Telegram API.

You can get your API ID and API hash here: https://my.telegram.org/apps

You get your bot token from https://t.me/BotFather

The check_for_new_tweets() function is defined. This function uses the tweepy client to pull the 20 most recent tweets from a specific Twitter user's timeline, and

tweetstotelegram's People

Contributors

moha1150 avatar

Watchers

 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.