Update screenshot_downloader.py

forget to remove a text from screenshot
pull/2151/head
Mohamed B. 12 months ago committed by GitHub
parent b72b9a96ad
commit 4dfc729fda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -270,7 +270,7 @@ def get_screenshots_of_reddit_posts(reddit_object: dict, screenshot_num: int):
# Take a screenshot of the parent element with the adjusted height
page.screenshot(
clip=location,
path=f"assets/temp/{reddit_id}/png/comment_{idx}_parent.png",
path=f"assets/temp/{reddit_id}/png/comment_{idx}.png",
)
else:
print("Could not get the bounding box of the parent element.")

Loading…
Cancel
Save