Increase number of items in RSS feed? #228

Open
opened 2020-08-01 16:05:23 -04:00 by probonopd · 17 comments
probonopd commented 2020-08-01 16:05:23 -04:00 (Migrated from github.com)

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

Is there an URL parameter to increase the number of items in an RSS feed? Is this documented somewhere?
zedeus commented 2020-08-01 17:08:10 -04:00 (Migrated from github.com)

There is not, what is your use case?

There is not, what is your use case?
probonopd commented 2020-08-01 17:14:45 -04:00 (Migrated from github.com)

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.

I would like to include RSS feeds coming from nitter into a [planet aggregator](https://appimage.gitlab.io/planet/). For this, I would like to get more entries in the RSS feed than I am currently getting.
zedeus commented 2020-08-01 20:59:01 -04:00 (Migrated from github.com)

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

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 2020-08-04 00:18:44 -04:00 (Migrated from github.com)

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?

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 2020-08-04 01:01:10 -04:00 (Migrated from github.com)

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

If hosting your own instance is possible it's quite easy, otherwise it's not possible yet.
probonopd commented 2020-08-04 03:39:40 -04:00 (Migrated from github.com)

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

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 2020-08-18 09:37:27 -04:00 (Migrated from github.com)

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

I also think that having an URL parameter is useful and would love to see that feature implemented.
BradKML commented 2021-10-19 03:37:29 -04:00 (Migrated from github.com)

What about Pagination and Local Caching of pages/queries?

What about Pagination and Local Caching of pages/queries?
acarasimon96 commented 2021-10-19 11:57:19 -04:00 (Migrated from github.com)

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.

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 2023-06-19 08:59:11 -04:00 (Migrated from github.com)

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?

> 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 2023-06-19 09:50:43 -04:00 (Migrated from github.com)

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

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 2023-06-19 09:59:51 -04:00 (Migrated from github.com)

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?

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 2023-06-19 11:23:52 -04:00 (Migrated from github.com)

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

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](https://github.com/zedeus/nitter/assets/9434921/9a82109d-c484-4cab-a4fe-0a0ccab535db)
Steeven9 commented 2023-08-14 06:48:52 -04:00 (Migrated from github.com)

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: github.com/zedeus/nitter@624394430c

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 2023-09-19 14:14:48 -04:00 (Migrated from github.com)

@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 Hi, did you manage to increase the limit ? I have modified these files : - [https://github.com/zedeus/nitter/blob/master/src/api.nim#L106](https://github.com/zedeus/nitter/blob/master/src/api.nim#L106) - [https://github.com/zedeus/nitter/blob/master/src/consts.nim#L104](https://github.com/zedeus/nitter/blob/master/src/consts.nim#L104) - [https://github.com/zedeus/nitter/blob/master/src/apiutils.nim#L14](https://github.com/zedeus/nitter/blob/master/src/apiutils.nim#L14) I recompiled everything but still have the 20 items limit. Is there anything else to do ?
Steeven9 commented 2023-09-20 11:32:02 -04:00 (Migrated from github.com)

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

@jor-dor no idea - I also have only 20 items, but literally cannot find "20" anywhere in the code.
BANKA2017 commented 2023-09-22 14:11:52 -04:00 (Migrated from github.com)

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

Endpoints with `V2` suffix do not support customizing the number of tweets.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
PAS/nitter#228
No description provided.