Added new yml

This commit is contained in:
Guillem Hernandez Sola
2026-03-29 19:17:11 +02:00
parent 0f3d12fc72
commit 7b48406252

View File

@@ -145,8 +145,8 @@ def scrape_tweets_via_playwright(username, password, email, target_handle):
continue # Skip ads or invalid articles continue # Skip ads or invalid articles
created_at = time_el.get_attribute('datetime') created_at = time_el.get_attribute('datetime')
# Get Text # Get Text (FIXED: Added .first to avoid strict mode violations on Quote RTs)
text_locator = article.locator('[data-testid="tweetText"]') text_locator = article.locator('[data-testid="tweetText"]').first
text = text_locator.inner_text() if text_locator.is_visible() else "" text = text_locator.inner_text() if text_locator.is_visible() else ""
# Get Images # Get Images