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

Question: How to paginate beyond the 100 limit on station feedback.thumbsup list #25

Open
feczo opened this issue Aug 1, 2017 · 2 comments
Labels

Comments

@feczo
Copy link

feczo commented Aug 1, 2017

This is not supported by the current library, but I patched the models just to return the dict of feedback as per documentation https://6xq.net/pandora-apidoc/json/stations/

so I can do:

from pandora import clientbuilder
p = clientbuilder.PydoraConfigFileBuilder()
client = p.build()
s = client.get_station('1316180904578479950')

so I can get the songs if I iterate through, single example

s.feedback['thumbsUp'][0]['songName']
u'Stray Cat Strut'

my issue is that I can not get them all

len(s.feedback['thumbsUp'])
100

s.feedback['totalThumbsUp']
132

I cross checked my results with node implementation https://www.npmjs.com/package/anesidora
and the results are the same so its an API limit.

There must be a way to paginate and get a list of the remaining 32 items (and several hundreds on other stations where the likes are 300+ total)

Any suggestions? I probably need to reverse engineer the UI traffic otherwise.

@feczo
Copy link
Author

feczo commented Aug 1, 2017

Looks like there is POST /api/v1/station/getStationFeedback
parameters:
pageSize: pageSize,
positive: positive,
startIndex: (= pageNumber * pageSize),
stationId: stationId

as per https://pastebin.com/9br3VZjX

@PromyLOPh
Copy link
Owner

PromyLOPh commented Aug 1, 2017 via email

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

No branches or pull requests

2 participants