Skip to content

Commit

Permalink
Bugfix: Get latest APK version (#182)
Browse files Browse the repository at this point in the history
* Bugfix: Get latest APK version

* added test for apk version scraper

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
Der-Henning and pre-commit-ci[bot] authored Aug 19, 2022
1 parent 1b575a7 commit cc58615
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions tests/test_apk.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import responses

from tgtg.google_play_scraper import get_last_apk_version


def test_get_latest_apk_version():
responses.add_passthru("https://play.google.com/store/apps/details")
get_last_apk_version()
2 changes: 1 addition & 1 deletion tgtg/google_play_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import requests

RE_SCRIPT = re.compile(
r"AF_initDataCallback\({key:\s*'ds:4'.*?data:([\s\S]*?), sideChannel:.+<\/script"
r"AF_initDataCallback\({key:\s*'ds:5'.*?data:([\s\S]*?), sideChannel:.+<\/script"
)


Expand Down

0 comments on commit cc58615

Please sign in to comment.