Merge pull request #1664 from liamb13/translate-title-fix

fixes title query
pull/1607/head
Simon 2 years ago committed by GitHub
commit c0d741a3ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -174,7 +174,7 @@ def get_screenshots_of_reddit_posts(reddit_object: dict, screenshot_num: int):
) )
page.evaluate( 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, texts_in_tl,
) )
else: else:

Loading…
Cancel
Save