Skip to content

new Scraper().fetchLikedTweets() #202

Description

@MantasVaistaras

https://the-convocation.github.io/twitter-scraper/classes/Scraper.html#fetchlikedtweets-1

Image

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);
  }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions