diff --git a/twitter2bsky_daemon.py b/twitter2bsky_daemon.py index cfd3fe8..73e3d8e 100644 --- a/twitter2bsky_daemon.py +++ b/twitter2bsky_daemon.py @@ -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 @@ -417,4 +417,4 @@ def main(): logging.info(f"🤖 Bot finished.") if __name__ == "__main__": - main() + main() \ No newline at end of file