Skip to content

Conversation

@dansollok
Copy link
Contributor

Added headers to request to fight bot detection

fixes: #4603

Copilot AI review requested due to automatic review settings October 23, 2025 08:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes bot detection issues with the Sutton council waste collection service by adding realistic browser headers to HTTP requests. The change helps the scraper successfully bypass the website's anti-bot protection mechanisms.

Key Changes:

  • Added User-Agent and other browser headers to the requests session to mimic a legitimate browser

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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.

[Source Request]: Sutton Council, London, UK Calendar not loading

1 participant