coocan 0.5.1__tar.gz → 0.5.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {coocan-0.5.1 → coocan-0.5.2.1}/PKG-INFO +1 -1
- {coocan-0.5.1 → coocan-0.5.2.1}/coocan/cmd/cli.py +3 -7
- coocan-0.5.2.1/coocan/push_project.py +12 -0
- {coocan-0.5.1 → coocan-0.5.2.1}/coocan/templates/spider.txt +1 -1
- {coocan-0.5.1 → coocan-0.5.2.1}/coocan.egg-info/PKG-INFO +1 -1
- {coocan-0.5.1 → coocan-0.5.2.1}/coocan.egg-info/SOURCES.txt +1 -0
- coocan-0.5.2.1/coocan.egg-info/entry_points.txt +2 -0
- {coocan-0.5.1 → coocan-0.5.2.1}/setup.py +2 -2
- coocan-0.5.1/coocan.egg-info/entry_points.txt +0 -2
- {coocan-0.5.1 → coocan-0.5.2.1}/README.md +0 -0
- {coocan-0.5.1 → coocan-0.5.2.1}/coocan/__init__.py +0 -0
- {coocan-0.5.1 → coocan-0.5.2.1}/coocan/cmd/__init__.py +0 -0
- {coocan-0.5.1 → coocan-0.5.2.1}/coocan/gen.py +0 -0
- {coocan-0.5.1 → coocan-0.5.2.1}/coocan/spider/__init__.py +0 -0
- {coocan-0.5.1 → coocan-0.5.2.1}/coocan/spider/base.py +0 -0
- {coocan-0.5.1 → coocan-0.5.2.1}/coocan/url/__init__.py +0 -0
- {coocan-0.5.1 → coocan-0.5.2.1}/coocan/url/request.py +0 -0
- {coocan-0.5.1 → coocan-0.5.2.1}/coocan/url/response.py +0 -0
- {coocan-0.5.1 → coocan-0.5.2.1}/coocan.egg-info/dependency_links.txt +0 -0
- {coocan-0.5.1 → coocan-0.5.2.1}/coocan.egg-info/requires.txt +0 -0
- {coocan-0.5.1 → coocan-0.5.2.1}/coocan.egg-info/top_level.txt +0 -0
- {coocan-0.5.1 → coocan-0.5.2.1}/setup.cfg +0 -0
@@ -16,10 +16,6 @@ help_info = """
|
|
16
16
|
"""
|
17
17
|
|
18
18
|
|
19
|
-
def show_help_info():
|
20
|
-
print(help_info)
|
21
|
-
|
22
|
-
|
23
19
|
def snake_to_pascal(snake_str: str):
|
24
20
|
"""小蛇变成大驼峰"""
|
25
21
|
words = snake_str.split('_')
|
@@ -31,7 +27,7 @@ def snake_to_pascal(snake_str: str):
|
|
31
27
|
@click.pass_context
|
32
28
|
def main(ctx):
|
33
29
|
if ctx.invoked_subcommand is None:
|
34
|
-
|
30
|
+
print(help_info)
|
35
31
|
click.echo("cc new -s <spider_file_name>")
|
36
32
|
|
37
33
|
|
@@ -55,13 +51,13 @@ def new(spider: str):
|
|
55
51
|
|
56
52
|
py_file = "{}.py".format(spider)
|
57
53
|
if os.path.exists(py_file):
|
58
|
-
click.echo("
|
54
|
+
click.echo("Failed because file {} already exists".format(py_file))
|
59
55
|
return
|
60
56
|
|
61
57
|
with open(py_file, 'w') as f:
|
62
58
|
f.write(spider_py_text)
|
63
59
|
|
64
|
-
click.echo("Success")
|
60
|
+
click.echo("Success create {}".format(py_file))
|
65
61
|
|
66
62
|
except Exception as e:
|
67
63
|
click.echo(str(e))
|
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as f:
|
|
5
5
|
|
6
6
|
setup(
|
7
7
|
name="coocan",
|
8
|
-
version="0.5.1",
|
8
|
+
version="0.5.2.1",
|
9
9
|
author="wauo",
|
10
10
|
author_email="markadc@126.com",
|
11
11
|
description="Air Spider Framework",
|
@@ -20,7 +20,7 @@ setup(
|
|
20
20
|
],
|
21
21
|
entry_points={
|
22
22
|
'console_scripts': [
|
23
|
-
'
|
23
|
+
'coocan=coocan.cmd.cli:main',
|
24
24
|
],
|
25
25
|
},
|
26
26
|
package_data={
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|