Rishikant181 / Rettiwt-API

A CLI tool and an API for fetching data from Twitter for free!
https://rishikant181.github.io/Rettiwt-API/
MIT License
303 stars 31 forks source link

Is there an api that allows me to get user notifications to all tweets #542

Closed spencer17x closed 4 days ago

spencer17x commented 1 month ago

Show like https://x.com/i/timeline

spencer17x commented 1 month ago

Now that I'm using tweet.search to get some of the user's tweets, how do I get the user's retweets

Rishikant181 commented 1 month ago

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.

spencer17x commented 1 month ago

That way, it is easy to report too many requests errors if you need to query multiple users

Rishikant181 commented 1 month ago

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.

spencer17x commented 1 month ago

But why should web-based twitter get access to retweets

Rishikant181 commented 1 month ago

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.

Rishikant181 commented 4 days ago

Fixed #560 Fixed #559

spencer17x commented 1 day ago

Fixed #560 Fixed #559

Is there any usage documentation?

Rishikant181 commented 1 day ago

It's in dev branch right now. Release (v3.1.0) will be on Tuesday (hopefully).

spencer17x commented 23 hours ago

It's in dev branch right now. Release (v3.1.0) will be on Tuesday (hopefully).

Any links?

Rishikant181 commented 22 hours ago

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.

spencer17x commented 21 hours ago

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

Rishikant181 commented 18 hours ago

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:

  1. followed user feed
  2. recommended (for you) feed