Open probonopd opened 4 years ago
There is not, what is your use case?
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.
One option is to use the Min-Id header for pagination, see here for details: https://github.com/zedeus/nitter/issues/96#issuecomment-562934631
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?
If hosting your own instance is possible it's quite easy, otherwise it's not possible yet.
OK thanks, unfortunately I can only use the publicly hosted instance. Would you take a feature request for this? Thank you very much.
I also think that having an URL parameter is useful and would love to see that feature implemented.
What about Pagination and Local Caching of pages/queries?
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.
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?
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
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?
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):
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 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 no idea - I also have only 20 items, but literally cannot find "20" anywhere in the code.
Endpoints with V2
suffix do not support customizing the number of tweets.
Is there an URL parameter to increase the number of items in an RSS feed? Is this documented somewhere?