Skip to content

n8creator/page_loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Actions Status Maintainability Test Coverage Actions Status

Page Loader CLI

Page Loader utility allows to download some page and associated files (img, css, js, etc.) from the Web and save it into specified directory (current directory used by default).

Installation

Install via pip package manager:

pip install --user git+https://github.com/n8creator/python-project-lvl3.git

Usage

As a library function

from page_loader import download

file_path = download('https://www.python.org/', '/var/tmp')
print(file_path)  # => '/var/tmp/www-python-org.html'

As a command-line utility

$ page-loader https://www.python.org/ -o /var/tmp/

# Output
Loading resourses: |████████████████████████████████| 15/15
Output page had been saved to '/var/tmp/www-python-org.html'

Examples of usage

asciicast

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published