Skip to content

Nazarinh0/python-project-lvl3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests and linter status:

Actions Status Linter check

Code Climate:

Maintainability Test Coverage wemake-python-styleguide

Page-loader

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

Installation and usage

Install

python3 -m pip install git+https://github.com/nazarinh0/python-project-lvl3

Use as a library

from page_loader import download

path_to_page = download(url, actual_path=os.getcwd())
print(path_to_page)

Use as a CLI

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)

Logging

Logs are written to .page-loader-errors.log (this file creates in the working directory).

About

PAGE LOADER (CL program that download a page and it resources from the internet)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published