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.
pip3 install pillow
pip3 install pyautogui
import screenshot
# x, y,width,height
img = screenshot.scroll_screenshot((610, 145, 1170, 957))