-
Notifications
You must be signed in to change notification settings - Fork 9
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
including reviews with app details #28
Conversation
Thank you so much. It's still in draft mode yes?
Yes Nice idea. It's good to get the first reviews from a single-page application page with a single request. But note what I mentioned in the issue is about getting all reviews. We need to check and explore the XHR requests of Google which look are not raw JSON. |
Yes, I'd like to at least clean up some namings, as indicated in the issue.
Not only that; the data was already transferred, so why not use it?
Yes, I remember. I left some notes about that in #27 (not here, as that would be a separate task, maybe for another PR). And no, it's not "raw JSON", it's rather ProtoBuf. I just take the "lazy approach" converting it to JSON, as other scrapers do as well. One reason is keeping dependencies low (not having to include some ProtoBuf lib), another is that ProtoBuf consists of 2 parts where we only have one of: data we have, definition is missing (proprietary). So here's the path I'd suggest:
|
OK, got the responses in, too, if there are any – so it's ready for your testing, @BaseMax (candidate with responses, to get an idea what to look for: Oh, btw, as the commit message says I also included the token for fetching more reviews. Might come in handy if you already have the app data and want to append. Or maybe it's even needed to fetch any reviews at all if that process cannot work completely separate (so one would need to fetch appData first, then continue from there). |
Thanks. |
Yes, full ack. This here just implements the easy-to-get-at part in a place we're parsing already anyway. The original issue is still open (and assigned to me) – I hope to find some time to implement the additional method some day (feel free to send me a reminder every now and then; my current task-queue is quite full and I need to prioritize; also I guess the new issue about not getting versions for some apps is more important, right? For that, too, I'll see when I can get to it). Thanks for merging! |
As they are part of the page and don't need a separate request, I've left them with the app details. Might be incomplete, though: I've noticed when browsing them at Play, it seems to have loaded more via XHR all the while. For the example you've specified in #27 it has 40 reviews included. If that's not enough and there are more, we could take a look at that for a separate method later. This one at least gets you started 😄
So can you please test it out and give your opinion, @BaseMax?