Goodreads Developers discussion

478 views
questions > Shelf RSS feed behavior for shelfsize > 100

Comments Showing 1-4 of 4 (4 new)    post a comment »
dateUp arrow    newest »

message 1: by Brian (new)

Brian (gruntbug) | 3 comments I'm using the RSS feed for a shelf. I noticed if the shelf has more than 100 items, the feed will only have 100 in it, That's fine, but I can't figure out the algorithm it uses for which 100 to choose. I found a shelf from a user with over 1000 books on it. I can get the RSS feed to show different books in it if I change the parameter like the HTML page uses, but even doing that by setting pages, page sizes, etc. I still can't figure out how it is choosing the 100.

For example, I thought that if I looked at this:
https://www.goodreads.com/review/list...
which is sorted by title, first 100, that if I looked at the corresponding RSS feed I would get the same books, but not so:
https://www.goodreads.com/review/list...

Everything I have tried hasn't gotten me closer to figuring out the mystery of the RSS feeds. Any ideas/help?

Thanks!


message 2: by [deleted user] (new)

Hey Brian,

Thanks for bringing this to our attention.

By default, the books on a user's shelf are sorted by their updated_at field...that time is usually when the user added the book to their shelf, or moved it from another shelf to the current one.

As you've observed, you can pass in a "sort" parameter that will sort the results by a different column, such as "title". However, it looks like the rss feed is always returning results sorted in descending order. That's why you see different results between the html version and rss version...the rss version is sorting in the reverse direction.

I'll put in a change that allows you to pass in an "order" parameter as well...that way you can either sort in ascending or descending order. That should get you the results you want.

I'll update this ticket again when that change is in.


message 3: by Brian (new)

Brian (gruntbug) | 3 comments Hi Nichole,

Thanks so much for the quick response! I look forward to the update.

Brian


message 4: by Brian (new)

Brian (gruntbug) | 3 comments Bringing up an old thread... did this change/fix get put in? I just tried these and neither appear to order:
https://www.goodreads.com/review/list...
AND
https://www.goodreads.com/review/list...


back to top