The third project written for the academic purposes of a Hexlet's course on learning a programming language Python.
Page-loader is web page downloader.
- The page is downloaded in html format.
- Content is downloaded only that which is located on the same domain.
- Can be used as CLI tool or library
python3 -m pip install git+https://github.com/sudobooo/python-project-lvl3
from page_loader import download
path_to_page = download(url, actual_path=os.getcwd())
print(path_to_page)
usage: page-loader [options] <url>
description: web page downloader
positional arguments:
url
optional arguments:
-h, --help show this help message and exit
-V, --version output the version number
-o [dir], --output [dir]
output dir (default: working directory)
All error logs are written to .page-loader-errors.log. The file is created in the working directory.