Updated timeouts
This commit is contained in:
@@ -2504,7 +2504,7 @@ def scrape_tweets_via_playwright(username, password, email, target_handle):
|
|||||||
scrape_page.goto(f"https://x.com/{target_handle}")
|
scrape_page.goto(f"https://x.com/{target_handle}")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
scrape_page.wait_for_selector("article", timeout=20000)
|
scrape_page.wait_for_selector("article", timeout=40000)
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
|
|
||||||
articles = scrape_page.locator("article").all()
|
articles = scrape_page.locator("article").all()
|
||||||
|
|||||||
Reference in New Issue
Block a user