Git Product home page Git Product logo

Comments (5)

zedeus avatar zedeus commented on June 2, 2024

Infinite scroll is disabled by default unless the instance operator changes the config, in which case you can open the settings page and turn it off yourself. Lists serving a lot of tweets is unfortunately a problem caused by Twitter/X, the "limit" parameter for the endpoint doesn't work. I could limit it to only return the latest x amount of tweets, but then pagination would involve making the same massive request over and over, which isn't an acceptable solution.

from nitter.

dontpnc avatar dontpnc commented on June 2, 2024

Lists serving a lot of tweets is unfortunately a problem caused by Twitter/X, the "limit" parameter for the endpoint doesn't work. I could limit it to only return the latest x amount of tweets, but then pagination would involve making the same massive request over and over, which isn't an acceptable solution.

I noticed that the example list (1003294326628192257) with the following parameter:

https://nitter.net/search?f=tweets&q=list%3A1003294326628192257&since=&until=&near=

shows only 20 tweets in the timeline, displaying the newest tweets without exceeding the limit unless I manually 'load more'.

However, when using the direct list URL:

https://nitter.net/i/lists/1003294326628192257

it displays more than 50 tweets in the timeline. Is there a way to configure or specify a parameter to limit the timeline to only display the 10 latest tweets without having to load more?

from nitter.

zedeus avatar zedeus commented on June 2, 2024

No, there is no parameter to do that. The first link performs a search using the SearchTimelime endpoint. The second link uses the endpoint for retrieving list tweets, which for whatever reason no longer supports the "limit" parameter. If you want to retrieve only 20 tweets you can use search, there is no other way.

from nitter.

dontpnc avatar dontpnc commented on June 2, 2024

Thank you for clarifying.

I'm leaning towards using the first link with the search endpoint to limit the timeline to 20 tweets. Could you please provide information on whether there is any distinction in the rate limiting when using the search endpoint compared to the endpoint for retrieving list tweets? Specifically, I'm concerned about the 500 request rate limit and how it might be affected by choosing one link over the other.

from nitter.

zedeus avatar zedeus commented on June 2, 2024

The search endpoint is limited fairly heavily, allowing a max of 50 requests every 15 minutes. Note however there is another rate limit that can get triggered easily without requesting very often. Not much is known about it, can't help you sorry. You can see the base limit per endpoint here:

nitter/src/auth.nim

Lines 10 to 24 in 583c858

apiMaxReqs: Table[Api, int] = {
Api.search: 50,
Api.tweetDetail: 150,
Api.photoRail: 180,
Api.userTweets: 500,
Api.userTweetsAndReplies: 500,
Api.userMedia: 500,
Api.userRestId: 500,
Api.userScreenName: 500,
Api.tweetResult: 500,
Api.list: 500,
Api.listTweets: 500,
Api.listMembers: 500,
Api.listBySlug: 500
}.toTable

from nitter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.