From 590cbbdc72e4b9e3ef330b8f0491a40fbbdf6fc8 Mon Sep 17 00:00:00 2001 From: SoClose <33631880+SoClosee@users.noreply.github.com> Date: Sat, 28 Feb 2026 07:16:56 +0100 Subject: [PATCH] fix(twitter_scraper/browser.py): remove hardcoded user agent --- twitter_scraper/browser.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/twitter_scraper/browser.py b/twitter_scraper/browser.py index c915f04..5630c60 100644 --- a/twitter_scraper/browser.py +++ b/twitter_scraper/browser.py @@ -1,5 +1,3 @@ -"""Browser lifecycle management for TwitterDataScraper.""" - from __future__ import annotations import logging @@ -13,7 +11,6 @@ from twitter_scraper.config import ( IMPLICIT_WAIT, PAGE_LOAD_TIMEOUT, - USER_AGENT, ) logger = logging.getLogger(__name__) @@ -35,7 +32,6 @@ def _create_options(self) -> webdriver.ChromeOptions: options = webdriver.ChromeOptions() options.add_argument("--disable-notifications") options.add_argument("--disable-blink-features=AutomationControlled") - options.add_argument(f"--user-agent={USER_AGENT}") options.add_experimental_option( "excludeSwitches", ["enable-logging", "enable-automation"] )