This repository was archived by the owner on Nov 18, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ def __init__(self, package_name):
1010 self .tree = html .fromstring (self .content )
1111
1212 def rating (self ):
13+ # Returns rating out of 5
1314 selector = CSSSelector ('.score' )
1415 match = self .tree .xpath (selector .path )
1516 rating = float (match [0 ].text )
Original file line number Diff line number Diff line change 1+ import os
2+ from setuptools import find_packages , setup
3+
4+
5+ # allow setup.py to be run from any path
6+ os .chdir (os .path .normpath (os .path .join (os .path .abspath (__file__ ), os .pardir )))
7+
8+ setup (
9+ name = 'playstats' ,
10+ version = '0.1' ,
11+ packages = find_packages (),
12+ include_package_data = True ,
13+ license = 'BSD License' ,
14+ description = 'A python package to fetch statistics of apps on Google Play such as ratings, downloads and much more.' ,
15+ long_description = 'A python package to fetch statistics of apps on Google Play such as ratings, downloads and much more.' ,
16+ url = 'https://github.com/EternityPy/PlayStats' ,
17+ author = 'Apoorva Pandey' ,
18+ author_email = 'apoorvaeternity@gmail.com' ,
19+ python_requires = '>=3' ,
20+ install_requires = ['lxml' , 'cssselect' ],
21+ classifiers = [
22+ 'Intended Audience :: Developers' ,
23+ 'License :: OSI Approved :: BSD License' ,
24+ 'Operating System :: OS Independent' ,
25+ 'Programming Language :: Python' ,
26+ ],
27+ )
You can’t perform that action at this time.
0 commit comments