Skip to content

xialei-chn/Python-scrolling-screenshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python scrolling screenshot

Introduction

A Python script scrolling screenshot tool module implemented based on pyautogui and pillow library. The functional implementation only relies on specified screenshot coordinate information, automatically scrolling, taking screenshots, and adaptive stitching (to avoid abnormalities such as image stitching misalignment caused by scrolling errors, page size differences, etc.). Failure scenario: When there is a large amount of blank space and duplicate content on the screenshot page, the final screenshot may appear incomplete.

Dependency

pip3 install pillow
pip3 install pyautogui

Example

import screenshot

# x, y,width,height
img = screenshot.scroll_screenshot((610, 145, 1170, 957))

About

A Python script scrolling screenshot tool module implemented based on pyautogui and pillow library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages