Skip to content

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

License

Notifications You must be signed in to change notification settings

fscz/python-html-inliner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages