zedeus / nitter

Alternative Twitter front-end
https://nitter.net
GNU Affero General Public License v3.0
10.12k stars 534 forks source link

Increase number of items in RSS feed? #228

Open probonopd opened 4 years ago

probonopd commented 4 years ago

Is there an URL parameter to increase the number of items in an RSS feed? Is this documented somewhere?

zedeus commented 4 years ago

There is not, what is your use case?

probonopd commented 4 years ago

I would like to include RSS feeds coming from nitter into a planet aggregator. For this, I would like to get more entries in the RSS feed than I am currently getting.

zedeus commented 4 years ago

One option is to use the Min-Id header for pagination, see here for details: https://github.com/zedeus/nitter/issues/96#issuecomment-562934631

probonopd commented 4 years ago

Thanks @zedeus. I was hoping for something like &n=100 in the URL. I cannot send headers. My blog aggregator only allows me to specify an URL.

I guess it is not (yet) possible?

zedeus commented 4 years ago

If hosting your own instance is possible it's quite easy, otherwise it's not possible yet.

probonopd commented 4 years ago

OK thanks, unfortunately I can only use the publicly hosted instance. Would you take a feature request for this? Thank you very much.

bouncepaw commented 4 years ago

I also think that having an URL parameter is useful and would love to see that feature implemented.

BradKML commented 3 years ago

What about Pagination and Local Caching of pages/queries?

acarasimon96 commented 3 years ago

Local caching sounds like a good idea but not pagination. I don't think I know of any RSS feeds that support pagination, and implementing one would open up a possibility of abuse anyway.

Steeven9 commented 1 year ago

If hosting your own instance is possible it's quite easy, otherwise it's not possible yet.

Could you expand on the first part? How could we achieve this?

zedeus commented 1 year ago

Change 20 on these two lines to increase the amount of tweets for search and user timelines, then recompile and run it as described in the readme: https://github.com/zedeus/nitter/blob/master/src/api.nim#L106 https://github.com/zedeus/nitter/blob/master/src/consts.nim#L104

Steeven9 commented 1 year ago

Nice, that's exactly what I needed! Would it be possible to add it to the config file somehow? I'm running nitter in docker so it would be extremely useful to have it there 😊

Also semi-related question: is it possible to filter out RTs from the rss feed?

zedeus commented 1 year ago

Yeah, I'll probably add that soon. Yes, just click on the search tab before copying the RSS link for a profile, and exclude replies and retweets (unless you want replies of course): image

Steeven9 commented 1 year ago

Hiya, there's another 20 hardcoded here: https://github.com/zedeus/nitter/blob/master/src/apiutils.nim#L14 which somehow was not considered until recently - I imagine due to this commit: https://github.com/zedeus/nitter/commit/624394430c0989d18c279153006c6a7e48f4dd03

jor-dor commented 1 year ago

@Steeven9 Hi, did you manage to increase the limit ? I have modified these files :

I recompiled everything but still have the 20 items limit. Is there anything else to do ?

Steeven9 commented 1 year ago

@jor-dor no idea - I also have only 20 items, but literally cannot find "20" anywhere in the code.

BANKA2017 commented 1 year ago

Endpoints with V2 suffix do not support customizing the number of tweets.