Skip to content

Conversation

@dwillis
Copy link
Collaborator

@dwillis dwillis commented Nov 21, 2025

…protection

Changes:

  • Replace requests with cloudscraper in all scraper modules (match.py, player.py, series.py, summary.py)
  • Add cloudscraper dependency to requirements.txt
  • Fix bug in player.py line 196: changed self.headers() to self.headers
  • Remove unused dateparser import from player.py
  • All modules now use cloudscraper.create_scraper() to handle Cloudflare anti-bot protection

This update addresses 403 Access Denied errors caused by Cloudflare bot detection. The scraper will now work from environments where ESPN Cricinfo is accessible.

…protection

Changes:
- Replace requests with cloudscraper in all scraper modules (match.py, player.py, series.py, summary.py)
- Add cloudscraper dependency to requirements.txt
- Fix bug in player.py line 196: changed self.headers() to self.headers
- Remove unused dateparser import from player.py
- All modules now use cloudscraper.create_scraper() to handle Cloudflare anti-bot protection

This update addresses 403 Access Denied errors caused by Cloudflare bot detection.
The scraper will now work from environments where ESPN Cricinfo is accessible.
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.

3 participants