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