Merge pull request #368 from Phlipde/develop

Removed "Click to see nsfw" Button in Screenshot
This commit is contained in:
Callum Leslie authored and GitHub committed 2022-06-07 23:09:49 +01:00
commit 00ba8789f9
1 file changed
+1
+1
View File
@@ -38,6 +38,7 @@ def download_screenshots_of_reddit_posts(reddit_object, screenshot_num, theme):
print_substep("Post is NSFW. You are spicy...")
page.locator('[data-testid="content-gate"] button').click()
page.locator('[data-click-id="text"] button').click() # Remove "Click to see nsfw" Button in Screenshot
page.locator('[data-test-id="post-content"]').screenshot(
path="assets/png/title.png"