Skip to content

fix: MidSussexDistrictCouncil - migrate to council-branded Whitespace portal#1980

Closed
InertiaUK wants to merge 1 commit into
robbrad:masterfrom
InertiaUK:fix/midsussex-portal-rebrand
Closed

fix: MidSussexDistrictCouncil - migrate to council-branded Whitespace portal#1980
InertiaUK wants to merge 1 commit into
robbrad:masterfrom
InertiaUK:fix/midsussex-portal-rebrand

Conversation

@InertiaUK
Copy link
Copy Markdown
Contributor

Mid-Sussex moved off the shared sms-wrp.whitespacews.com host (which now returns Access denied! for every request — 14 bytes, no body) onto a self-branded Whitespace deployment at waste.services.midsussex.gov.uk. The underlying flow — find the "View my collections..." link, replace seq=1 with seq=2, POST address_name_number + address_postcode, follow the property_list anchor, parse section#scheduled-collections — is identical.

Changes:

  • URI swapped to https://waste.services.midsussex.gov.uk/.
  • Send a realistic Chrome User-Agent (host returns 403 without one).
  • Use a callable for the find() text match instead of the deprecated text= kwarg (BeautifulSoup 4.12 wants string=).
  • Handle property_list href being either absolute or relative on the new branded host.

Verified against postcode RH16 1SS — returns the full collection schedule (food / recycling / refuse over the next four weeks).

… portal

Mid-Sussex moved off the shared `sms-wrp.whitespacews.com` host (which
now returns "Access denied!" for every request) onto a self-branded
Whitespace deployment at `waste.services.midsussex.gov.uk`. The
underlying flow — find the "View my collections..." link, replace
`seq=1` with `seq=2`, POST `address_name_number` + `address_postcode`,
follow the property_list anchor, parse `section#scheduled-collections`
— is identical.

Changes:
- URI swapped to `https://waste.services.midsussex.gov.uk/`.
- Send a realistic Chrome User-Agent so the host doesn't 403.
- Use a callable for the `find()` text match instead of the deprecated
  `text=` keyword (BeautifulSoup 4.12 deprecated it for `string=`).
- Handle the property_list `href` being either absolute or relative on
  the new branded host.

Verified against postcode RH16 1SS — returns the full collection
schedule.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 25, 2026

Warning

Rate limit exceeded

@InertiaUK has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 59 minutes and 24 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 59 minutes and 24 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 336d7fa8-1034-4159-af6f-9339e063af64

📥 Commits

Reviewing files that changed from the base of the PR and between 60bd3cc and 8abdc3d.

📒 Files selected for processing (1)
  • uk_bin_collection/uk_bin_collection/councils/MidSussexDistrictCouncil.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@robbrad robbrad mentioned this pull request May 1, 2026
@robbrad
Copy link
Copy Markdown
Owner

robbrad commented May 1, 2026

Included in May 2026 Release PR #1992. Closing.

@robbrad robbrad closed this May 1, 2026
@robbrad robbrad mentioned this pull request May 2, 2026
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.

2 participants