egirault / googleplay-api

Google Play Unofficial Python API - This project was a PoC and is not maintained anymore. Please feel free to fork it and improve it in any way.
879 stars 373 forks source link

Optimization for downloading #4

Closed wqswlp closed 11 years ago

wqswlp commented 12 years ago

This is a question or feature request rather than a bug report.

Current implementation get the downloadURL from a query message = self.executeRequestApi2(path, data) url = message.payload.buyResponse.purchaseStatusResponse.appDeliveryData.downloadUrl

this will hit google play every time when we download a single app. In the case I use this to enumerate the google play and download free apps one by one, the google server will throttle our searches and block googleplay-api.

Is there a way to craft the downloadURL since we already know the packagename and authtoken and cookie? My tcpdump shows that the downloadURL has consistent format but different token for each app.

egirault commented 12 years ago

Indeed this would be useful. I didnt perform any analysis on the downloadURL but I guess it is pretty random and unpredictable. But any help/optimization would be appreciated! Le 8 sept. 2012 04:24, "wqswlp" notifications@github.com a écrit :

This is a question or feature request rather than a bug report.

Current implementation get the downloadURL from a query message = self.executeRequestApi2(path, data) url = message.payload.buyResponse.purchaseStatusResponse.appDeliveryData.downloadUrl

this will hit google play every time when we download a single app. In the case I use this to enumerate the google play and download free apps one by one, the google server will throttle our searches and block googleplay-api.

Is there a way to craft the downloadURL since we already know the packagename and authtoken and cookie? My tcpdump shows that the downloadURL has consistent format but different token for each app.

— Reply to this email directly or view it on GitHubhttps://github.com/egirault/googleplay-api/issues/4.

strazzere commented 11 years ago

You cannot craft a downloadURL as the token generated in an unpredictable manner with tokens tied to the download.

I'd suggest you instead invest into thinking of a back off strategy along side of some rate limiting.

wqswlp commented 11 years ago

Hi Tim

Thanks for replying. Completely agreed with you, given current google play protocol.

I have a off-topic question, I send resume to your company through company website, but got no response, Can you help with that?

David

Date: Mon, 19 Nov 2012 11:19:03 -0800 From: notifications@github.com To: googleplay-api@noreply.github.com CC: itanium128@hotmail.com Subject: Re: [googleplay-api] Optimization for downloading (#4)

You cannot craft a downloadURL as the token generated in an unpredictable manner with tokens tied to the download.

I'd suggest you instead invest into thinking of a back off strategy along side of some rate limiting.

          —

          Reply to this email directly or view it on GitHub.