Skip to content

Commit d3bba5b

Browse files
committed
v2.0.0
1 parent 2bdb241 commit d3bba5b

File tree

5 files changed

+7
-16
lines changed

5 files changed

+7
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ save_webpage(
118118
>**This function is changed from `core.setup_config`**
119119
120120
You can manually configure every configuration by using a
121-
`core.setup_config` call.
121+
`config.setup_config` call.
122122

123123
```Python
124124

build/lib/pywebcopy/__init__.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,3 @@
2929
'__version__', '__author__', '__copyright__', '__license__', '__email__',
3030
'core', 'structures', 'config', 'utils', 'generators', 'exceptions'
3131
]
32-
33-
34-
if __name__ == '__main__':
35-
core.save_webpage(
36-
url='https://google.com/',
37-
mirrors_dir="E:\\Programming\\Projects\\WebsiteCopier\\archive\\\Mirrors_dir",
38-
user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",
39-
copy_all=False,
40-
over_write=True,
41-
bypass_robots=True,
42-
)

build/lib/pywebcopy/core.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111

1212
from __future__ import print_function
1313

14-
__all__ = [
15-
'py3', 'py2', 'setup_config', 'get', 'now', 'save_webpage', 'wrap_up'
16-
]
17-
1814
import datetime
1915
import shutil
2016
import sys
@@ -42,6 +38,12 @@
4238
import exceptions
4339

4440

41+
42+
__all__ = [
43+
'py3', 'py2', 'setup_config', 'get', 'now', 'save_webpage', 'wrap_up'
44+
]
45+
46+
4547
def save_webpage(url, mirrors_dir, reset_config=True, **kwargs):
4648
""" Starts crawler, archives and writes logs etc. """
4749

dist/pywebcopy-2.0.0.tar.gz

832 Bytes
Binary file not shown.

dist/pywebcopy-2.0.0.win-amd64.zip

-23 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)