Generated screenshots will be created in the unversioned htmlscreenshot/var/
directory.
View CLI help.
$ make page-help
$ make pages-help
Run demo tasks against some fixed URLs that have been configured.
Screenshot one page.
$ make page-demo
Screenshot each page listed in the sample.txt file.
$ make pages-demo
See images here created in the var
directory:
$ ls -1 htmlscreenshot/var
2021-11-02-20:00-Michael-Currin.png
2021-11-02-20:02-Twitter-It-s-what-s-happening-Twitter.png
2021-11-02-20:04-Welcome-to-Python-org.png
Date and time are included so you can do multiple runs and compare results.
Screenshot against a single URL using the scrape
module. e.g.
$ python -m htmlscreenshot.scrape 'https://example.com'
Screenshot against a text file of URLs using the main module e.g.
$ python -m htmlscreenshot ~/path/to/urls.txt
Where the file has one URL per line - see sample.txt for an example.
Delete all images.
$ make clean