Skip to content

feat: add optional headless flag to scraper#23

Open
AntDX316 wants to merge 1 commit intokarpathy:masterfrom
AntDX316:feat/scrape-headless-flag-karpathy
Open

feat: add optional headless flag to scraper#23
AntDX316 wants to merge 1 commit intokarpathy:masterfrom
AntDX316:feat/scrape-headless-flag-karpathy

Conversation

@AntDX316
Copy link
Copy Markdown

Summary

  • add an optional --headless flag to scrape.py
  • preserve the current default behavior (headless=False)
  • document the new flag in the README

Why

The scraper currently hard-codes non-headless Chromium, which makes sense as the default because BLS may block headless traffic more aggressively. But exposing a flag makes the script easier to test and experiment with in automation-oriented environments without changing the default local workflow.

Behavior

  • default remains non-headless
  • users can now opt in with uv run python scrape.py --headless

Verification

  • compiled the updated scrape.py successfully with python3 -m compileall scrape.py
  • reviewed the diff to confirm the change is limited to the CLI flag, launch behavior, and README docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant