Skip to content

mnogom/python-project-lvl3

Repository files navigation

Page downloader


python-ci Actions Status Maintainability Test Coverage


Installation

pip3 install --upgrade git+https://github.com/mnogom/python-project-lvl3.git

Usage

  1. From command line
usage: page-loader [-h] [-o OUTPUT] [-d] url

Page loader

positional arguments:
  url                   URL

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        destination for download
  -d, --debug           activate DEBUG mode
  1. From Python
import page_loader

page_loader.download("https://some_url.com/some_page", "path/to/file")

Features

  1. Download main page and all relative references
  2. Progress bar
  3. Debug mode (enable all logger messages)

See examples below


Examples

Download page

asciicast

Debug mod

asciicast

About

Console utility to download page with assets

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published