[GH-ISSUE #160] Custom Nitter Instance Not Working #45
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#45
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 (Aug 23, 2023).
Original GitHub issue: https://github.com/TheLovinator1/discord-twitter-webhooks/issues/160
Nitter, and many of its instances (including nitter.lovinator.space) are currently down due to Twitter changes (https://github.com/zedeus/nitter/issues/983). There are a handful of instances currently using a rewrite branch that are working, but setting the Nitter Instance in this app doesn't appear to function. In the logs, I see the settings are applied, but the app doesn't seem to ever fetch Tweets from the new instance. Restarting the app after applying the setting does not resolve the issue.
@EthanC commented on GitHub (Aug 23, 2023):
@TheLovinator1 any chance you have time to look into this? It'd be great to be able to workaround the current Nitter issues!
@0xpr03 commented on GitHub (Aug 23, 2023):
Please do not use public instances for your bots and operate your own. We will probably have to rate limit you, or straight up block bots due to how brittle the current rate limit situation from twitter is. There is a high chance you are already blocked due to cloud providers being the biggest source of scrapers.
@EthanC commented on GitHub (Aug 24, 2023):
After changing the Nitter instance, I noticed many URLs to the old instance in the database. I assume there's some kind of comparison happening here after the instance change that causes this issue.
Knowing this, I found a less-than-ideal workaround.
discord_twitter_webhooks.db(this will reset everything to defaults)Feeds will then function as expected, using the newly-set, non-default Nitter instance.
@dziban303 commented on GitHub (Aug 25, 2023):
I noticed this too, I thought it just saved the currently selected instance when creating a feed. Does it not use the new instance when you create a new feed? I can't remember if I tested it or not @EthanC
@EthanC commented on GitHub (Aug 25, 2023):
Hm, I didn't test creating a new feed without first deleting the db. But I can confirm that deleting the db, setting the new instance, and then creating a new feed will in fact use the new instance.
@dziban303 commented on GitHub (Aug 25, 2023):
Ah it's just a SQL database, might be able to just change the instance for the feeds with sed or something
@dziban303 commented on GitHub (Aug 25, 2023):
OK, yes, creating a new feed after changing the default instance will apparently use the new instance. @TheLovinator1 given the present circumstances I think it'd be better if the currently selected default Nitter instance was used for all feeds instead of whatever instance was in use when the feed was originally created, and/or, allow changing the instance used for individual feeds.
Ethan I think we've annoyed him too much, lol.