Capture specified URLs as PNG image files.
- Python 3.7 (tested with this version).
- Python libraries:
pip
,pipenv
(to install and execute);click
andselenium
. - Google Chrome browser (current stable version recommended).
- The matching Selenium Chrome Driver for your version of Chrome.
- Install pipenv for your account:
pip3 install --user pipenv
- Use pipenv:
pipenv install
- Set up the virtual environment:
pipenv shell
- When you're done, enter:
pipenv exit
Your installation will persist, just run pipenv shell
to access your virtual environment.
For more information about pipenv, see Basic Usage of Pipenv.
In your pipenv shell environment, enter
python pagecap https://example.com/sample.html
to create a PNG file of https://example.com/sample.html.
Help: python pagecap --help
See VERSIONS.md for the version history.