NoMore201 / googleplay-api

Google Play Unofficial Python API
Other
409 stars 208 forks source link

num_of_results is not coming more than 7 when listing category apps #155

Open Arshit007 opened 2 years ago

Arshit007 commented 2 years ago

7 results are coming for every category. I tested for FINANCE category with subcategory as apps_topselling_free.

Arshit007 commented 2 years ago

what is URL you are making the request?Can you specify the headers and params? Also,14 apps are all unique right?

Arshit007 commented 2 years ago

This is the URL you are using to get the apps from category "https://android.clients.google.com/fdfe/list?c=3&cat=FINANCE&n=100&o=2&ctr=apps_topselling_free" ?

Arshit007 commented 2 years ago

how many maximum number of apps you can fetch from a particular category?

Arshit007 commented 2 years ago

I am getting the below response after hitting the URL for the first time: { 'browseUrl': 'getBrowseStream?ecp=CjSiCjEIARIHRklOQU5DRRocChZyZWNzX3RvcGljX055MVdYUzdUaExnEDsYAyoCCAdSAggC', 'nextPageUrl': 'getCluster?enpt=CjSC0_-4Ay4KJfqegZ0DHwgAEKuO3ZIDEPyx99gIEOqipLMKEJT64ZQGEPu_5SMQlZCizPAvEAUaNKIKMQgBEgdGSU5BTkNFGhwKFnJlY3NfdG9waWNfTnkxV1hTN1RoTGcQOxgDKgIIB1ICCAI', 'ordered': False}

I appended the URL with nextPageUrl but got 400 status code.

Arshit007 commented 2 years ago

Got the solution -

  1. First we hit this url https://android.clients.google.com/fdfe/list?c=3&cat=FINANCE&n=100&o=0&ctr=apps_topselling_free
  2. Then once we get the nextPageUrl key then we will use that token to make another request like - https://android.clients.google.com/fdfe/getCluster?enpt=YlpCHgocCAISD3RvcHNlbGxpbmdfZnJlZRoHRklOQU5DRUocChoIBxCyuf61ARCLi-r7DxCgvrybCxCxmr2CD1AHahhGejBXNkFkNjYyZ1V5ZFJVNFV0ZGl3PT0
  3. Then again we will get the nextPageUrl key and we will repeat the same process again.