Skip to main content

A Python script that uses Pillow's ImageGrab to capture screenshots.

Project description

scapr

PyPI - Version

Screen Capture in Python

A script that uses Pillow's ImageGrab to capture screenshots.

Usage

usage: scapr [-h] [--auto] [--seconds SLEEP_SEC] [--count STOP_COUNT]
             [--folder OUTPUT_DIR] [--region REGION_BOX] [--flat]

Command-line utility to capture screenshots.

options:
  -h, --help           show this help message and exit
  --auto               Do not prompt to start capturing screenshots. Begin
                       right away.
  --seconds SLEEP_SEC  Number of seconds to pause between screenshots.
  --count STOP_COUNT   Number of screenshots to take before stopping.
  --folder OUTPUT_DIR  Name of folder for saving captured screenshots.
  --region REGION_BOX  Region to capture (instead of full screen). Specify box
                       coordinates, separated by commas (no spaces between),
                       as 'x1,y1,x2,y2' where x1 and y1 are the left-top pixel
                       coordinates, and x2 and y2 are the right-bottom pixel
                       coordinates. Example: '--region 100,100,600,600' to
                       capture a 500 x 500 image starting at 100 pixels from
                       top and left.
  --flat               Do not create a sub-folder for each capture session (a
                       'flat' output folder structure).

Reference

Pillow

Pillow - ImageGrab

Python - KeyboardInterrupt

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

scapr-2025.12.2.tar.gz (36.2 kB view details)

Uploaded Source

Built Distribution

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

scapr-2025.12.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file scapr-2025.12.2.tar.gz.

File metadata

  • Download URL: scapr-2025.12.2.tar.gz
  • Upload date:
  • Size: 36.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for scapr-2025.12.2.tar.gz
Algorithm Hash digest
SHA256 e3cb34bd27e7066b2c89944becdcd57c13589a11b5345c3e5d4926794ab7d1f1
MD5 7aeecd4272dbc8093631082239eb291a
BLAKE2b-256 215e29655735ea21a7d5b8d68fe3639b5ade756e62d35955ab91b5df0e99abc9

See more details on using hashes here.

File details

Details for the file scapr-2025.12.2-py3-none-any.whl.

File metadata

  • Download URL: scapr-2025.12.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for scapr-2025.12.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a8a6e96f45525181f9d59cd8624f8a8d566d80152088022b4e32ef9f68eff7f
MD5 20aee660b6d603519b4fef63013d6c9f
BLAKE2b-256 6b8143e9474054b1a3433e8f580f92584519a7f4fb06368af8c8ab21636910a7

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