Commit Graph

182 Commits

Author SHA1 Message Date
Sebastian Weisgerber
5f42319971 Changed generic Except. in ...GooglePlayAPI to LoginError 2019-01-23 08:58:59 +01:00
Domenico Iezzi
c119d1ce5b
Improve list() documentation and test case 2019-01-22 23:09:13 +01:00
Domenico Iezzi
af10ec6494
Enforce same style for every function name 2019-01-22 22:35:32 +01:00
Domenico Iezzi
e1d2671caf
Removed nb_results and offset from search() 2018-12-23 23:37:07 +01:00
Domenico Iezzi
cd6d686eff
travis: remove arguments from cmd 2018-12-23 22:41:55 +01:00
Domenico Iezzi
3629b232fe
Test now fetches gsfId and token from env
This *should* fix travis build failing everytime
2018-12-23 22:38:41 +01:00
Domenico Iezzi
129d45f19b
Return complete messages for some APIs 2018-12-23 22:36:55 +01:00
Domenico Iezzi
6c8d295369
Use MessageToDict for pb parsing 2018-12-23 22:36:04 +01:00
Domenico Iezzi
46b427124d
Updated Protobuf definition and parsing
Newer definition have been fetched from play-store-api. Moreover, the
following enhanchements are introduced:

- An new function utils.parseProtobufObj will automatically parse any
Protobuf object into a dictionary, so there's no need to manually
specify each field to parse
- Added toc() and acceptTos() functions
- Added deviceCheckinConsistencyToken and dfeCookie to API state and
headers
- Since search results are now divided into clusters, each one
representing a different subcategory, now the search() API call returns
a list of clusters, each one containing a list of apps
2018-12-12 17:23:07 +01:00
Domenico Iezzi
86e069b541
Restore security error message 2018-11-17 10:53:14 +01:00
Domenico Iezzi
588b17eb7c
Prepare for v0.4.3 2018-09-08 18:26:58 +02:00
Domenico Iezzi
a83c2abfbf
Introduced new exceptions 2018-07-15 17:09:31 +02:00
Domenico Iezzi
e84a0d7db2
changed crypto library with pyca/cryptography
https://github.com/pyca/cryptography
2018-07-15 16:36:37 +02:00
Domenico Iezzi
13bc63b927
Added script to fetch devices from play-store-api 2018-07-15 13:15:00 +02:00
Domenico Iezzi
99ae4cba0e
moved tests into a separate folder 2018-07-15 12:23:38 +02:00
Domenico Iezzi
118b539cbc
Merge pull request #57 from kallix/FIX-api.search
FIX broken URL in api.search() that raises an exception when nb_result >20
2018-06-25 14:33:14 +02:00
Kevin
b9d3ecdce1 FIX broken URL in api.search() that raises an exception when nb_results > 20 2018-06-23 00:16:04 +02:00
Domenico Iezzi
5324eaa51b
Moved some code in config.py 2018-06-09 10:49:43 +02:00
Domenico Iezzi
525c24fae0
Slighty more readable code + cleanup 2018-06-08 21:39:44 +02:00
Domenico Iezzi
9a9ba1434a
Added API to fetch search suggestions 2018-04-06 20:47:58 +02:00
Domenico Iezzi
2247d2386e Revert "updated device data for bacon"
This reverts commit 67ced7bdb67f437d9b2a2381ed3119d4f9f1237a.
2018-03-23 13:47:47 +01:00
Domenico Iezzi
05170a1e0a Added API to fetch home apps 2018-03-23 13:47:47 +01:00
Domenico Iezzi
78113555b5 updated device data for bacon 2018-03-23 13:47:47 +01:00
Domenico Iezzi
5ea4ab08c7 utils: parse apk permissions 2018-03-23 13:47:47 +01:00
Domenico Iezzi
d40ea3658c
wrong license in setup.py 2018-03-23 13:45:25 +01:00
Domenico Iezzi
eae2db749d
setup.py: ensure protobuf version is recent
This should avoid problems like issue #34
2018-03-13 22:04:51 +01:00
Domenico Iezzi
425a3f8334
Merge pull request #46 from android-police/feature/add-description-recentchanges-fields
Exposed descriptionHtml, recentChangesHtml, versionString and saleEnds in utils.py
2018-03-13 22:00:44 +01:00
SeBsZ
d966b33d09 Exposed descriptionHtml, recentChangesHtml, versionString and saleEnds in utils.py
Added saleEnds to protobuf definition for app offers.
2018-03-13 15:40:12 +01:00
Domenico Iezzi
6f5565bdef
Some improvements to code
- Remove unstable userProfile API
- Changed names for some variables
- Disabled print calls. Loggin is now entirely up to the user.
- Implemented device config token, retrieved after the `uploadDevice`
procedure
- Updated headers from play-store-api project
- Fixed initialization for obb_download_test.py
2018-02-03 14:30:21 +01:00
Domenico Iezzi
1185a13a40
Prepare for v0.4.2 2018-02-01 12:16:50 +01:00
Domenico Iezzi
3d1f4fe56d
Removed unstable userProfile from test 2018-02-01 12:15:32 +01:00
Domenico Iezzi
d984a92dc7
Added log function
This function is needed by the purchase API to insert app into user's
library. Without this, new apps won't be downloaded
2018-02-01 11:53:16 +01:00
Domenico Iezzi
15cf326184
Merge pull request #37 from matlink/patch-1
Prepare for v0.4.1
2018-01-31 18:49:36 +01:00
Matlink
8e725d5da5
Update setup.py 2018-01-31 16:29:36 +01:00
Domenico Iezzi
7f0fad78ef
Added functions to change locale
Locale and Timezone can be changed even during a session, and results
will change accordingly
2018-01-27 19:42:36 +01:00
Domenico Iezzi
2e4166f4e5
locale and timezone should be mandatory arguments 2018-01-27 19:15:45 +01:00
Domenico Iezzi
454db356b0
Prepare for v0.4 2018-01-27 18:59:17 +01:00
Domenico Iezzi
0a13755ff9
_delivery_data returns more information 2018-01-27 18:39:40 +01:00
Domenico Iezzi
e05d126f6b
Updated device info for shamu, sailfish, op3, op3t 2018-01-26 21:05:31 +01:00
Domenico Iezzi
3d0d399434
Updated device info for mako, kenzo, fp2 2018-01-26 20:58:49 +01:00
Domenico Iezzi
a07640b90e
Updated parameters with more up-to-date values 2018-01-26 20:15:54 +01:00
Domenico Iezzi
c4ba7f80b3
Added auth headers
c21ac5eaf5
2018-01-26 19:46:23 +01:00
Domenico Iezzi
23937e6cb8
Improved file delivery + minor changes
* Updated user agent string with data taken from play-store-api
* *download* and *delivery* functions will now return a python generator
rather than raw bytes, to prevent app loading entire files in memory.
This generator can be iterated to get chunk of bytes to write, as
discussed in issue #35.
* as a consequence of the previous point, there is no more progress bar
feature for downloading. It should be implemented by developers using
the API.
2018-01-26 18:24:19 +01:00
Domenico Iezzi
e1c73c8af0
Updated device info for bullhead and hammerhead 2018-01-25 12:11:54 +01:00
Domenico Iezzi
291a5e9d93
Removed python2 test
Since python2 test fails 3 times over 4, because of bad
encoding/decoding, now testing is disabled. Users are encouraged to
switch to python3
2018-01-25 11:47:02 +01:00
Domenico Iezzi
149707caab
Updated test.py with timezone 2018-01-25 11:41:07 +01:00
Domenico Iezzi
24a3e1a09b
Changed Locale and TimeZone initialization
Before, if locale wasn't specified as a parameter, it was picked from
the system running gpapi. Similar thing happened for timezone, but its
value was hardcoded in config.py.
To avoid problems related to missing or unavailable apps, this commit
enforces users to provide a locale and a timezone value. Without them,
gpapi can't be initialized.
2018-01-25 11:36:25 +01:00
Domenico Iezzi
d7a322dd82
Updated device info for angler and bacon 2018-01-25 11:20:54 +01:00
Domenico Iezzi
5013dbe5ab
Update setup.py to version 0.3.2 2017-12-11 19:30:30 +01:00
Domenico Iezzi
f7d2077d78
Added proxy config to userProfile request 2017-12-09 11:50:20 +01:00