Use the package manager pip to install page-loader.
pip install --user git+https://github.com/sgmdlt/python-project-3.git
from page_loader import download
file_path = download('https://ru.hexlet.io/courses', '/var/tmp')
print(file_path) # => '/var/tmp/ru-hexlet-io-courses.html'
$ page-loader --help
usage: page-loader [options] <url>
Download web-pages and saves localy
positional arguments:
url url to download
optional arguments:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
output dir (default: [current directory])
-l {DEBUG,WARNING}, --log-level {DEBUG,WARNING}
sets log level (default: WARNING)
$ page-loader --output /var/tmp https://ru.hexlet.io/courses
/var/tmp/ru-hexlet-io-courses.html