0xNima / Twideo

Simple Telegram Bot for downloading videos from Twitter via their links
https://t.me/twideo_bot
59 stars 8 forks source link

Support Twitter's guest token #4

Open huwan opened 1 year ago

huwan commented 1 year ago

I would like to deploy the Twideo bot locally, but applying Twitter access tokens has become difficult. I am wondering if it is possible for the bot to support Twitter's guest API and public bearer token.

I noticed that yt-dlp and you-get project use public bearer token to download Twitter video. Additionally, there is a project demo page available at https://twitter-virtual-scroller.vercel.app/ which can retrieve tweet information without requiring private developer tokens.

I would appreciate it if Twitter's guest token support can be added to the bot.

0xNima commented 1 year ago

I would like to deploy the Twideo bot locally, but applying Twitter access tokens has become difficult. I am wondering if it is possible for the bot to support Twitter's guest API and public bearer token.

I noticed that yt-dlp and you-get project use public bearer token to download Twitter video. Additionally, there is a project demo page available at https://twitter-virtual-scroller.vercel.app/ which can retrieve tweet information without requiring private developer tokens.

I would appreciate it if Twitter's guest token support can be added to the bot.

ooh! I didn't know all endpoints of Twitter's API support guest tokens. Nevertheless, I've used it before in spacecraft bot. Thank you for your suggestion. I will implement it.

huwan commented 1 year ago

Glad to hear that you'll to implement this feature, thank you so much! Looking forward to it.