Skip to main content

A Python utility that takes a stitched screenshot of a webpage along with individual ones, at any resolution

Project description

webscreenshotter

A Python utility that takes a stitched screenshot of a webpage along with individual ones, at any resolution

Usage

  1. Install the package first
pip install webscreenshotter
  1. Use the function in your code
from webscreenshotter import take_screenshot

if __name__ == "__main__":
    take_screenshot (
        "https://en.wikipedia.org/wiki/qr_code",
        width=1280, height=720,
        directory=".screencaps", file_suffix="capture_",
        stitch=True
    )

Change the directory and suffix to whatever you want.

  1. Inspect the location you set as output directory for screenshot

Notes:

  1. Stitching happens vertically.
  2. Setting different resolutions can result in different style webpages, especially with PWAs and mobile-optimized webpages.

License

GPLv3 License

By 0x4f (Owais Shaikh)

https://pypi.org/project/webscreenshotter/ https://github.com/0x4f53/webscreenshotter

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

webscreenshotter-0.1.5.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webscreenshotter-0.1.5-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file webscreenshotter-0.1.5.tar.gz.

File metadata

  • Download URL: webscreenshotter-0.1.5.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for webscreenshotter-0.1.5.tar.gz
Algorithm Hash digest
SHA256 c4ccf8cfe62c8371bd4f32223f3b9be1a6c6c6b11593572a4f8284a9409bcbb9
MD5 d7c1b8193d377828b06c6920c89a0473
BLAKE2b-256 58c35b9d071a5f7fe82213ede67080835a115db84716658002f4091d3717eba4

See more details on using hashes here.

File details

Details for the file webscreenshotter-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for webscreenshotter-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0b8829f5ec7d4ffe12bc653c3dd05f8bb067eb84511154c7b483303d710872c0
MD5 13f45be1b6e30f507da1bf5bb93c173e
BLAKE2b-256 6f82493a275d00a1316f16a672359e5231b97be65c1d2b4964f890740321d6af

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page