Closed spencer17x closed 4 days ago
Now that I'm using tweet.search to get some of the user's tweets, how do I get the user's retweets
For notification, there is not endpoint yet.
As for retweets, they need to fetched from user.timeline
, which returns both the original tweets as well as retweets. You will need to filter out the original tweets using the tweetBy field to get the retweets, however.
That way, it is easy to report too many requests errors if you need to query multiple users
Unfortunately, the Twitter Web App provides no such way and since this library is works by reverse-engineering the web-app, it's currently not possible to just fetch the retweets.
But why should web-based twitter get access to retweets
This library is created by reverse-engineering the endpoints used by the Twitter Web-App, and this library can only do what the Twitter Web App can do. The web app currently does not provide any means to search for a user's retweets.
Fixed #560 Fixed #559
Fixed #560 Fixed #559
Is there any usage documentation?
It's in dev branch right now. Release (v3.1.0) will be on Tuesday (hopefully).
It's in dev branch right now. Release (v3.1.0) will be on Tuesday (hopefully).
Any links?
You'll have to manually package it from the dev branch by cloning the repo and using npm pack
command. Then use yarn or npm to install the locally packaged tarball..
Since it's dev branch, it implies there is still testing and documentation work left. Keep that in mind.
You'll have to manually package it from the dev branch by cloning the repo and using
npm pack
command. Then use yarn or npm to install the locally packaged tarball..Since it's dev branch, it implies there is still testing and documentation work left. Keep that in mind.
I'm referring to the usage documentation
Since the package hasn't been released, the documentation haven't been generated yet.
You may, however, refer to the comments in the code itself for the usage:
Show like https://x.com/i/timeline