mirror of
https://github.com/FliegendeWurst/googleplay-api.git
synced 2024-11-21 20:44:56 +00:00
Added API to fetch search suggestions
This commit is contained in:
parent
2247d2386e
commit
9a9ba1434a
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,3 +7,4 @@ build/
|
||||
dist/
|
||||
*.egg-info/
|
||||
.idea/
|
||||
.venv/
|
||||
|
@ -300,6 +300,17 @@ class GooglePlayAPI(object):
|
||||
|
||||
return message
|
||||
|
||||
def searchSuggest(self, query):
|
||||
params = {"c": "3",
|
||||
"q": requests.utils.quote(query),
|
||||
"ssis": "120",
|
||||
"sst": "2"}
|
||||
data = self.executeRequestApi2("searchSuggest", params=params)
|
||||
response = data.payload.searchSuggestResponse
|
||||
return [{"type": e.type,
|
||||
"suggestedQuery": e.suggestedQuery,
|
||||
"title": e.title} for e in response.entry]
|
||||
|
||||
def search(self, query, nb_result, offset=None):
|
||||
""" Search the play store for an app.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user