Skip to content

Scraper: 403 Forbidden when scraping DoD web directories #4

Description

@yunginnanet

Description
Encountering a Forbidden error from defense.gov due to missing or improper HTTP headers.

Steps to Reproduce

  1. Run mildew with its standard configuration to scrape DoD directories.
  2. Observe the Forbidden error when the target domain rejects the request.

Expected Behavior
Scraping should proceed successfully with valid HTTP headers set (e.g., a proper User-Agent or other relevant headers).

Additional Context
It appears that defense.gov requires specific HTTP headers or a valid User-Agent string. Adding appropriate headers may resolve the issue.

PR incoming

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions