nitter icon indicating copy to clipboard operation
nitter copied to clipboard

Increase number of items in RSS feed?

Open probonopd opened this issue 3 years ago • 17 comments

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

probonopd avatar Aug 01 '20 20:08 probonopd

There is not, what is your use case?

zedeus avatar Aug 01 '20 21:08 zedeus

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.

probonopd avatar Aug 01 '20 21:08 probonopd

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

zedeus avatar Aug 02 '20 00:08 zedeus

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?

probonopd avatar Aug 04 '20 04:08 probonopd

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

zedeus avatar Aug 04 '20 05:08 zedeus

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

probonopd avatar Aug 04 '20 07:08 probonopd

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

bouncepaw avatar Aug 18 '20 13:08 bouncepaw

What about Pagination and Local Caching of pages/queries?

BradKML avatar Oct 19 '21 07:10 BradKML

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.

acarasimon96 avatar Oct 19 '21 15:10 acarasimon96

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?

Steeven9 avatar Jun 19 '23 12:06 Steeven9

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

zedeus avatar Jun 19 '23 13:06 zedeus

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?

Steeven9 avatar Jun 19 '23 13:06 Steeven9

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

zedeus avatar Jun 19 '23 15:06 zedeus

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

Steeven9 avatar Aug 14 '23 10:08 Steeven9

@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 ?

jor-dor avatar Sep 19 '23 18:09 jor-dor

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

Steeven9 avatar Sep 20 '23 15:09 Steeven9

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

BANKA2017 avatar Sep 22 '23 18:09 BANKA2017