Code Monkey home page Code Monkey logo

twitter-lists-bot's Introduction

twitter-lists-bot

This telegram bot will keep you informed about new tweets from your twitter account list. Just create a public list in your twitter account, add some members which you are interesting in, and the bot will resend their tweets to your telegram chat/group.

  • Had been used python-telegram-bot API Library, you can use start_polling or webhook updates methods to recieve the messages (see twitterlistsbot.py code and pyTelegramBotAPI Library manual)

  • Had been used Python API for Twitter Library

Install:

You need to install:

  • python (tested on 3.5+ version)

  • python-telegram-bot:

$ sudo pip install python-telegram-bot --upgrade

  • Python Twitter Tools

$ sudo pip install twitter

But in any case you must read authentic modules documentation to use it in your own operating system and environment.

Settings:

Bot Settings are in the file twitterlist/config.py:

  • put your TG_BOT_TOKEN
  • id of chat or group where the bot will send messages TG_YOUR_TELEGRAM_PRIVATE_CHAT_ID (the bot should be an administrator there)
  • your Twitter API application settings (you can create one here - https://apps.twitter.com/)
  • your twitter account name TW_LIST_OWNER_SCREEN_NAME
  • your public list name (slug) TW_LIST_SLUG
  • a file name (with read/write permissions) to save list last read tweet ID - TW_LAST_TWIT_ID_FILENAME

The bot don't need your twitter account password and can't publish tweets from you or steal your personal information or something else, it uses only public information from your twitter account, that's why your twitter list could be public.

You can read some information about twitter list API if you are interesting in, here - https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference

Run:

$ python twitterlistsbot.py

  • you must use your python correct command depend of your python version and install path

License

twitter-lists-bot is released under an MIT License.

twitter-lists-bot's People

Contributors

lytves avatar

Watchers

Diego 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.