⚠️ ARCHIVED PROJECT: This repository is no longer actively maintained. The functionality provided here has been superseded by more capable modern tools like Playwright, which offers cross-browser support, better screenshot APIs, and active development. Consider usingplaywright screenshotor the Playwright API for your web capture needs.
Capture specified URLs as PNG image files.
- Python 3.12+ (requires modern Python for security updates).
- Python libraries:
pip,pipenv(to install and execute);clickandselenium. - 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.