Skip to content
This repository was archived by the owner on Nov 18, 2019. It is now read-only.

Commit fe0ac17

Browse files
Adds version for apps.
1 parent be42028 commit fe0ac17

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

playstats/appstat.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,10 @@ def genre(self):
5252
match = self.tree.xpath(selector.path)
5353
genre = match[0].text
5454
return genre
55+
56+
def version(self):
57+
# Returns the genre that the app belongs to.
58+
selector = CSSSelector('[itemprop="softwareVersion"]')
59+
match = self.tree.xpath(selector.path)
60+
version = match[0].text.strip()
61+
return version

0 commit comments

Comments
 (0)