Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 2.47 KB

README.md

File metadata and controls

71 lines (47 loc) · 2.47 KB

python-html-inliner

python-html-inliner downloads a webpage into a local folder and subsequently produces a single html file with styles, fonts, scripts, images, videos inlined.

Dependencies

In order to use python-html-inliner you need Python 2, wget and the following python packages. Install them with pip.

Usage

usage: inliner.py [-h] -u URI -d DIR [-i INLINE] [-l] [-p] [-ni] [-nf] [-nv] [-v]

optional arguments:

  • -h, --help

show this help message and exit

  • -u URI, --uri URI

The URI to download and inline

  • -d DIR, --dir DIR

The local folder where retrieved data will be stored

  • -i INLINE, --inline INLINE

Inline the file of specified name from the local directory. If not specified, inliner will try to find the file automagically

  • -l, --local

Use content from local directory, do not download data

  • -p, --prettify

Prettify javscript

  • -ni, --no-images

Don't embed images

  • -nf, --no-fonts

Don't embed fonts

  • -nv, --no-videos

Don't embed videos

  • -v, --verbose

verbose output

Examples

Here are a few examples, how you might want to use python-html-inliner.

Once you have a local folder with all the files you need, you can work locally, with the --local option.

Here you can see some results: