Skip to content

Commit caeca99

Browse files
committed
Merge branch 'commandLineTool'
2 parents 2b848b8 + eea239e commit caeca99

File tree

4 files changed

+31
-11
lines changed

4 files changed

+31
-11
lines changed

.gitignore

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1+
# Editor related files
12
.idea/
23
.vscode/
3-
Hackerrank/
4-
__pycache__
4+
5+
# Setuptools distribution folder.
56
dist/
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/

hsc/__init__.py

Whitespace-only changes.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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()

setup.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
1-
import setuptools
1+
from setuptools import setup, find_packages
22

33
with 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+
)

0 commit comments

Comments
 (0)