-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User Tweets API is returning 404 #45
Comments
Nitter has a possible solution: zedeus/nitter#983 (comment) I don't have any recent experience with Twitter's API, so I don't grok the details; do you think it's something this twitter-client could pursue? |
I've been keeping an eye on that issue thread. I don't have any more experience with Twitter's internal APIs than you do (and possibly a lot less than some people who might be reading this), so I wouldn't know how to implement that solution myself. Once the specific API endpoints are shared publically, I can adapt it to JavaScript. We might be able to make twitter-client interoperable with the tool for fetching guest credentials via proxies once that's released, configurable with a URL in the env variables or something. As a fallback for low-traffic clients, we can also include code to fetch credentials directly from Twitter (unproxied). If anyone reading this knows how to implement the solution without waiting for Nitter, let us know and we can collaborate on an implementation. |
This Nitter commit contains information on how to use guest accounts instead of guest tokens to access Twitter APIs. What we're still missing is concrete information on how to generate guest accounts programatically. Here's the Nitter PR to subscribe to for updates: zedeus/nitter#985 If anyone wants to start working on this, remember that Nitter is AGPL-3.0 and we're public domain, so we can't use any copyrightable information from Nitter. (Nitter doesn't hold the copyright to Twitter's API interface, so this is fair game. Likewise, the general algorithm for interacting with Twitter's API doesn't belong to Nitter, but Nitter's implementation details do.) |
Nitter sites can get guest accounts from a service that was set up for Nitter hosts at https://twitterminator.x86-64-unknown-linux-gnu.zip; I just re-activated my Nitter instance using that and it's working. I really want to switch back to using this app to backend my Mastodon gateway, though; it's much more lightweight and the formatting of the posts is much better. :-) |
That looks like a really nice service for fetching guest accounts, especially for people like yourself who already have it configured for a Nitter instance. I want 12joan/twitter-client to be as flexible as possible with regard to sourcing guest accounts. I think the most extensible solution would be to expose an environment variable Currently, I don't have any easy way of getting access to guest accounts to test with, nor do I have much time to spend on this at the moment. @us3r1d Are you able to adapt 12joan/twitter-client for compatibility with guest accounts, and also to add the environment variable described above? |
Hah; I wish. I'd have done it already. :-) The GET_GUEST_ACCOUNTS_CMD is a nifty idea for how to approach it, though. I'll look at the source, but I probably don't have the knowledge to do this in the time I can give to it right now. |
Probably related to zedeus/nitter#983
The API request to fetch Tweets for a given user is returning a 404 status and no response body.
The text was updated successfully, but these errors were encountered: