Skip to content

Commit

Permalink
Merge pull request JoMingyu#129 from civantos/feature/real-installs
Browse files Browse the repository at this point in the history
Add field for real installations
  • Loading branch information
JoMingyu authored Jun 9, 2022
2 parents 06c74ae + 666041c commit 2caddd0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions google_play_scraper/constants/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class ElementSpecs:
"summary": ElementSpec(4, [1, 2, 73, 0, 1], unescape_text),
"installs": ElementSpec(4, [1, 2, 13, 0]),
"minInstalls": ElementSpec(4, [1, 2, 13, 1]),
"realInstalls": ElementSpec(4, [1, 2, 13, 2]),
"score": ElementSpec(4, [1, 2, 51, 0, 1]),
"ratings": ElementSpec(4, [1, 2, 51, 2, 1]),
"reviews": ElementSpec(4, [1, 2, 51, 3, 1]),
Expand All @@ -66,7 +67,8 @@ class ElementSpecs:
[0, 0, 0, 0, 0],
),
"price": ElementSpec(
4, [1, 2, 57, 0, 0, 0, 0, 1, 0, 0], lambda price: (price / 1000000) or 0
4, [1, 2, 57, 0, 0, 0, 0, 1, 0, 0], lambda price: (
price / 1000000) or 0
),
"free": ElementSpec(4, [1, 2, 57, 0, 0, 0, 0, 1, 0, 0], lambda s: s == 0),
"currency": ElementSpec(4, [1, 2, 57, 0, 0, 0, 0, 1, 0, 1]),
Expand All @@ -93,7 +95,8 @@ class ElementSpecs:
"icon": ElementSpec(4, [1, 2, 95, 0, 3, 2]),
"headerImage": ElementSpec(4, [1, 2, 96, 0, 3, 2]),
"screenshots": ElementSpec(
4, [1, 2, 78, 0], lambda container: [item[3][2] for item in container], []
4, [1, 2, 78, 0], lambda container: [item[3][2]
for item in container], []
),
"video": ElementSpec(4, [1, 2, 100, 0, 0, 3, 2]),
"videoImage": ElementSpec(4, [1, 2, 100, 1, 0, 3, 2]),
Expand Down

0 comments on commit 2caddd0

Please sign in to comment.