[GH-ISSUE #110] Twitter Restricts Filtered Stream API to Enterprise #25
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TheLovinator/discord-twitter-webhooks#25
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @EthanC on GitHub (Jun 10, 2023).
Original GitHub issue: https://github.com/TheLovinator1/discord-twitter-webhooks/issues/110
Although it has slowly rolled out, as my access was only cut off in the last 24 hours, Twitter now restricts access to the Filtered Stream API that this project relies on to the Enterprise tier. Today, my Docker instance of this project could not authenticate...
I see there is a rewrite branch of this project that appears to remove the API dependency and instead uses RSS feeds. This appears to be the best solution moving forward. Is this still in active development? Could a Docker image be provided for us to use?
Regardless, thanks for your work, @TheLovinator1
@TheLovinator1 commented on GitHub (Jun 10, 2023):
Hi, the rewrite is 95% done, so I still need a little more time before it is complete. I will post it here when it is done. Sorry for not being ready when the API died.
@thatjk commented on GitHub (Jun 14, 2023):
Also hit the issue of my docker instance could not authenticate earlier today as well, any eta of the update, not to rush just more curiosity. Thanks for your hard work
@dziban303 commented on GitHub (Jun 26, 2023):
My API access has been killed off as of today. Eagerly awaiting the RSS rewrite.
@jedimage commented on GitHub (Jul 4, 2023):
any update ?
I'm not sure about limit reading tweet per day will be some issue next ?
@EthanC commented on GitHub (Jul 4, 2023):
The rewrite appears to have relied on nitter, per the following line:
github.com/TheLovinator1/discord-twitter-webhooks@25a0e9ff4f/discord_twitter_webhooks/add_new_feed.py (L184)Twitter no longer provides data to unauthenticated users, effectively killing nitter. Research is ongoing for ways around this new limitation, but @TheLovinator1's project can't progress without the upstream issue being resolved first.
@TheLovinator1 commented on GitHub (Jul 6, 2023):
Hi, sorry for disappearing.
As Ethan said, I am using RSS feeds from Nitter for getting tweets but that broke
when Elon shut down the API that Nitter uses.
Elon says it is temporary, but I have no idea how long that will be. Or if we can even trust him.
If this doesn't get fixed soon, I guess I will have to find another way to get tweets. (Or just give up lol)
@Vilemouse commented on GitHub (Jul 7, 2023):
Just chiming in here. the restriction has been lifted so nitter should work again
@TheLovinator1 commented on GitHub (Jul 16, 2023):
Hi, I merged the
rewritebranch withmaster.It is probably a little bit rough right now.
The README has instructions how to run the bot. I have to sleep now, but feel free to reply/create a new issue for everything that is missing or broken.
Sorry again for taking so long to fix this
@dziban303 commented on GitHub (Jul 16, 2023):
Awesome! I couldn't get it working on the Pi4 I'd been using previously; it wanted ffmpeg, so I installed it and added the envar pointing to it. Then it threw a sql error, to wit:
reader.exceptions.StorageError: error while opening database: sqlite3.OperationalError: unable to open database fileshrugI just wanted to get it running before I went to bed, so I tried it in docker on a windows machine: it worked like a charm. I'll look at setting up a nitter instance tomorrow (or in the next few days, anyway, you know how it is) to support my own use case.
Is text filtering planned?
Thank you so much for getting this back up and running. We've been missing it!
Cheers
Edit: Tried again on Pi4 with latest build, threw a permissions error for the
/home/botuser/.local/share/discord_twitter_webhooksdirectory for some reason. I chmod'd it to 777 and then it worked.@EthanC commented on GitHub (Jul 16, 2023):
Successfully running the rewrite in Docker on Ubuntu; thanks for your hard work!
Because this project now relies on Nitter RSS feeds, there seems to be a delay between a Tweet being posted and it being posted to the Discord Webhook - which wasn't the case before. I'm wondering if the default Nitter instance could set
rssMinutesto1(or even0) to alleviate this issue?