From 6d2f20d832f31b923e292cf93340a6d969c5d936 Mon Sep 17 00:00:00 2001 From: liamb Date: Wed, 24 May 2023 12:32:43 +1000 Subject: [PATCH] fixes evaluate --- video_creation/screenshot_downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video_creation/screenshot_downloader.py b/video_creation/screenshot_downloader.py index 1c3ab5e..70f2b08 100644 --- a/video_creation/screenshot_downloader.py +++ b/video_creation/screenshot_downloader.py @@ -150,7 +150,7 @@ def get_screenshots_of_reddit_posts(reddit_object: dict, screenshot_num: int): ) page.evaluate( - "tl_content => document.querySelector('[data-test-id=\"post-content\"] > div:nth-child(3) > div > div').textContent = tl_content", + "tl_content => document.querySelector('[data-adclicklocation=\"title\"] > div > div > h1').textContent = tl_content", texts_in_tl, ) else: