NoMore201 / googleplay-api

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

It seems search function is not working properly #118

Open ryu-s-r opened 4 years ago

ryu-s-r commented 4 years ago

Since last week(I remember), searching function returns abnormal data. here is my debug information below.


path = 'https://android.clients.google.com/fdfe/search?c=3&q=Keyword'

data = 
payload {
  searchResponse {
    originalQuery: "Keyword"
    nextPageUrl: "searchList?q=Keyword&o=0&c=3&ksm=1"
  }
}
preFetch {
  url: "searchList?q=Keyword&o=0&c=3&ksm=1"
  response {
    payload {
      listResponse {
        doc {
          backendId: 3
          containerMetadata {
            nextPageUrl: "searchList?q=Keyword&o=0&c=3&ksm=1&ctntkn=CgiK38WpAwIIChAA"
            ordered: true
          }
          unknownCategoryContainer {
          }
        }
      }
    }
  }
  ttl: 7200000
  softTtl: 1800000
}
serverMetadata {
  latencyMillis: 242
}
serverLogsCookie: "\010\022\232\001\027\n\023\010\230\271\263\320\261\234\350\002\025\013\223\226\n\035\030\234\001\227\020\001"

I tried fixing it myself but had no luck. It seems other feature is working well.

khaleel-git commented 2 years ago

yes not working properly, it also fetchces unrelated android app ids. I simply filtering unrelated apps first, then showing related apps.

How you can achive this:

  1. first search desired query e.g ("instadp")
  2. It will list appIds
  3. get details of all appids -> filter out appids with title (if your search query is: "instadp" ignore all appids which does not contain "instadp" word in their title)

Its a tempoary solution, I also need permanent solution.

khaleel-git commented 2 years ago

@89z I am researching about this (issue#24), will give u reply once i complete my research.

khaleel-git commented 2 years ago

FYI this site is not valid:

https://apkfuel.com/apk-downloader/

If you choose x86, you get something else:

PS C:\> badging -f com.zhiliaoapp.musically.apk
uses-library-not-required:'org.apache.http.legacy'
  uses-feature: name='android.hardware.bluetooth'
  uses-feature: name='android.hardware.location'
native-code: 'armeabi-v7a'

This is in a development mode, native codes not working yet. But Search Suggestion I gave above for filtering the appIds is implemented on this. Please try to search something on it (it won't list unrelated apps).