File tree Expand file tree Collapse file tree 4 files changed +31
-11
lines changed
Expand file tree Collapse file tree 4 files changed +31
-11
lines changed Original file line number Diff line number Diff line change 1+ # Editor related files
12.idea /
23.vscode /
3- Hackerrank /
4- __pycache__
4+
5+ # Setuptools distribution folder.
56dist /
6- build /
7+ build /
8+
9+ # Python egg metadata, regenerated from source files by setuptools.
10+ * .egg-info /
11+
12+ # Compiled python modules.
13+ * .pyc
14+ __pycache__
15+
16+ # Script results
17+ Hackerrank /
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ def get_submissions(self, submissions):
125125 )
126126 print ('All Solutions Crawled' )
127127
128- if __name__ == "__main__" :
128+ def main () :
129129 offset = 0
130130 limit = 10 # you should change this
131131
@@ -142,3 +142,5 @@ def get_submissions(self, submissions):
142142 data = resp .json ()
143143 models = data ['models' ]
144144 crawler .get_submissions (models )
145+
146+ if __name__ == "__main__" : main ()
Original file line number Diff line number Diff line change 1- import setuptools
1+ from setuptools import setup , find_packages
22
33with open ("README.md" , "r" ) as fh :
44 long_description = fh .read ()
55
6- setuptools . setup (
7- name = 'hackerrank-crawler ' ,
8- version = '1.1 .0' ,
6+ setup (
7+ name = 'hsc ' ,
8+ version = '1.0 .0' ,
99 author = 'Nullifiers' ,
10- description = 'hackerrank solution crawler' ,
10+ author_email = 'nullifiersorg@gmail.com' ,
11+ description = 'Hackerrank Solution Crawler' ,
1112 url = 'https://github.com/Nullifiers/Hackerrank-Solution-Crawler' ,
13+ download_url = 'https://github.com/Nullifiers/Hackerrank-Solution-Crawler/releases' ,
1214 long_description = long_description ,
1315 long_description_content_type = "text/markdown" ,
14- packages = setuptools . find_packages (),
16+ packages = find_packages (),
1517 classifiers = [
1618 "Programming Language :: Python :: 3" ,
1719 "License :: OSI Approved :: MIT License" ,
1820 "Operating System :: OS Independent" ,
1921 ],
20- )
22+ entry_points = {
23+ 'console_scripts' : [
24+ 'hsc=hsc.crawler:main' ,
25+ ],
26+ }
27+ )
You can’t perform that action at this time.
0 commit comments