Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSS - Pagination #655

Closed
stom79 opened this issue Jun 30, 2022 · 4 comments
Closed

RSS - Pagination #655

stom79 opened this issue Jun 30, 2022 · 4 comments

Comments

@stom79
Copy link

stom79 commented Jun 30, 2022

Hi,

There was a parameter that can be used with rss feeds. See: #96
It seems, it's no longer working. Maybe it has been moved/removed?

Thanks for helping.

@stom79
Copy link
Author

stom79 commented Jun 30, 2022

This was introduced here: f3aa287

@zedeus
Copy link
Owner

zedeus commented Jul 1, 2022

Works fine for me when I take the Min-Id header value and use it for the ?cursor or ?max_position query

@9suika
Copy link

9suika commented Jul 6, 2022

Can reproduce.
Example:

$ curl -i https://nitter.net/search/rss?q=since_id%3A959441132630048835+max_id%3A959441142630048835+filter%3Amedia'&'cursor=scroll%3AthGAVUV0VFVBaAgK-l1KjP0BoWgIC_gdmoz9AaEnEVnIN6FYCJehgHREVGQVVMVDUBFQIVAAA3D
HTTP/2 200
server: nginx/1.22.0
date: Wed, 06 Jul 2022 01:46:41 GMT
content-type: application/rss+xml; charset=utf-8
content-length: 14773
min-id: scroll:thGAVUV0VFVBaAgK-l1KjP0BoWgIC_gdmoz9AaEnEVnIN6FYCJehgHREVGQVVMVDUBFQIVAAA=
[snip]

Returned min-id is the same as the cursor parameter from the input URL, returned items are the same as items from a cursor-less request (https://nitter.net/search/rss?q=since_id%3A959441132630048835+max_id%3A959441142630048835+filter%3Amedia). It seems like the cursor returned in the min-id header is different from the cursor returned by the HTML paginator. The HTML page returns scroll:thGAVUV0VFVBaAwLux1qjP0BoWgIC_gdmoz9AaEnEVrIZ6FYCJehgHREVGQVVMVDUBFQAVAAA=, using this as the RSS cursor does advance the results a bit but the min-id response header stays invalid.

@stom79
Copy link
Author

stom79 commented Jul 10, 2022

That works on my end. I fetch min-id from header and then use it with parameter max_position in the next call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants