GithubHelp home page GithubHelp logo

new-dev0 / tgtwitterstreamer Goto Github PK

View Code? Open in Web Editor NEW
81.0 5.0 71.0 108 KB

Continuous Integration from Twitter to Telegram.

Home Page: https://New-dev0.github.io/tgtwitterstreamer

License: GNU General Public License v3.0

Python 99.17% Procfile 0.18% Dockerfile 0.53% Batchfile 0.13%
tweets twitter heroku twitter-bot telegram asynchronous telegram-bot telethon tweepy hacktoberfest

tgtwitterstreamer's Introduction

TgTwitterStreamer

Icon

A bot to stream realtime tweets to telegram chats with an addition of other customization options.

It uses Telethon (Telegram Client library) and Tweepy to interact with Twitter Streaming API.

CodeFactor GitHub issues Open Source Love TgTwitterStreamer - Stream twitter tweets to telegram groups/channels | Product Hunt

Getting Started

  • You may need to apply for Elevated Access from here before creating Twitter App.
  • For Getting Required ENV's Refer this Link !
  • All Enviroment Variables can be found in env.sample !
  • Detailed information about ENV Vars can be found Here.

Deploy to Railway

Deploy on Railway

Showcase

  • Add the Channel/Group username to which you are streaming and the targeted usernames...
Group Twitter Users
@futurecodeschat sundarpichai, telegram, disneyplushs

Contributing

  • Any sort of Contributions are welcomed!

Thanks to everyone who has starred the project, I hope you found it helpful! ❤️

Support Chat

Donate

tgtwitterstreamer's People

Contributors

1danish-00 avatar new-dev0 avatar xditya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

tgtwitterstreamer's Issues

Error: authentication error

When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal.

Suggest to loosen the dependency on tweepy

Hi, your project TgTwitterStreamer(commit id: e2946e4) requires "tweepy==4.5.0" in its dependency. After analyzing the source code, we found that the following versions of tweepy can also be suitable, i.e., tweepy 4.6.0, 4.7.0, 4.8.0, since all functions that you directly (6 APIs: tweepy.auth.OAuth1UserHandler.set_access_token, tweepy.api.API.get_user, tweepy.errors.Unauthorized.init, tweepy.api.API.init, tweepy.auth.OAuthHandler.init, tweepy.asynchronous.streaming.AsyncStream.init) or indirectly (propagate to 9 tweepy's internal APIs and 8 outsider APIs) used from the package have not been changed in these versions, thus not affecting your usage.

Therefore, we believe that it is quite safe to loose your dependency on tweepy from "tweepy==4.5.0" to "tweepy>=4.5.0,<=4.8.0". This will improve the applicability of TgTwitterStreamer and reduce the possibility of any further dependency conflict with other projects.

May I pull a request to further loosen the dependency on tweepy?

By the way, could you please tell us whether such an automatic tool for dependency analysis may be potentially helpful for maintaining dependencies easier during your development?

error

Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
import(pkg_name)
File "/home/firdaus/Documents/Telegram/telebot/TgTwitterStreamer/TgTwitterStreamer/init.py", line 23, in
auth = OAuthHandler(Var.CONSUMER_KEY, Var.CONSUMER_SECRET)
File "/home/firdaus/.local/lib/python3.9/site-packages/tweepy/auth.py", line 36, in init
raise TypeError("Consumer key must be string or bytes, not "
TypeError: Consumer key must be string or bytes, not NoneType

TO_CHAT var

hi, i have problem to identiy chat id in TO_CHAT var. How to get it? is it BOT chat id? or group chat id?

Disconnect from twitter at same time since 1 of december

December 1 I found in railway logs twitter got disconnected, manually restarted, but on December 2 at excatly same time twitter got disconnected again:
[ INFO/2022-12-01 16:03:15,093] tweepy.asynchronous.streaming: Stream disconnected
[ INFO/2022-12-02 16:03:27,766] tweepy.asynchronous.streaming: Stream disconnected

Looks like something need to be changed.

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.