How i can screenshot a specific window?

This page summarizes the projects mentioned and recommended in the original post on /r/learnpython

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • python-mss

    An ultra fast cross-platform multiple screenshots module in pure Python using ctypes.

  • You can use PyGetWindow to get the info of a window based on its name, and then use your screenshot library of choice to get that part of the screen (personally I use mss because it’s fast and cross-platform).

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • PyGetWindow

    A simple, cross-platform module for obtaining GUI information on applications' windows.

  • You can use PyGetWindow to get the info of a window based on its name, and then use your screenshot library of choice to get that part of the screen (personally I use mss because it’s fast and cross-platform).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts