https://the-convocation.github.io/twitter-scraper/classes/Scraper.html#fetchlikedtweets-1
I do not think you can fetch the liked tweets of any account. You can only do it on your own account. The function works fine, just some extra documentation would be good.
/**
* Fetch the tweets a user has liked
* @param userId The user whose liked tweets should be returned
* @param maxTweets The maximum number of tweets to return.
* @param cursor The search cursor, which can be passed into further requests for more results.
* @returns A page of results, containing a cursor that can be used in further requests.
*/
public fetchLikedTweets(
userId: string,
maxTweets: number,
cursor?: string,
): Promise<QueryTweetsResponse> {
return fetchLikedTweets(userId, maxTweets, cursor, this.auth);
}
https://the-convocation.github.io/twitter-scraper/classes/Scraper.html#fetchlikedtweets-1
I do not think you can fetch the liked tweets of any account. You can only do it on your own account. The function works fine, just some extra documentation would be good.