Skip to content

Commit ca39617

Browse files
remove browser metrics tracking
1 parent 88ad0b2 commit ca39617

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/linkedin_spider/core/config.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ def _get_chrome_options(self) -> list[str]:
151151
"--no-default-browser-check",
152152
"--disable-background-networking",
153153
"--disable-sync",
154-
"--metrics-recording-only",
155154
"--disable-hang-monitor",
156155
"--disable-prompt-on-repost",
157156
"--max_old_space_size=4096",
@@ -165,6 +164,12 @@ def _get_chrome_options(self) -> list[str]:
165164
"--disable-features=BlockInsecurePrivateNetworkRequests",
166165
"--allow-running-insecure-content",
167166
"--disable-client-side-phishing-detection",
167+
# Prevent metrics accumulation to avoid disk space issues
168+
"--disable-metrics",
169+
"--disable-metrics-reporting",
170+
"--disable-crash-reporter",
171+
"--disk-cache-size=1",
172+
"--media-cache-size=1",
168173
]
169174

170175
if platform.system() == "Darwin":

0 commit comments

Comments
 (0)