fix: MidSussexDistrictCouncil - migrate to council-branded Whitespace portal#1980
fix: MidSussexDistrictCouncil - migrate to council-branded Whitespace portal#1980InertiaUK wants to merge 1 commit into
Conversation
… 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.
|
Warning Rate limit exceeded
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 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 configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Included in May 2026 Release PR #1992. Closing. |
Mid-Sussex moved off the shared
sms-wrp.whitespacews.comhost (which now returnsAccess denied!for every request — 14 bytes, no body) onto a self-branded Whitespace deployment atwaste.services.midsussex.gov.uk. The underlying flow — find the "View my collections..." link, replaceseq=1withseq=2, POSTaddress_name_number+address_postcode, follow theproperty_listanchor, parsesection#scheduled-collections— is identical.Changes:
https://waste.services.midsussex.gov.uk/.find()text match instead of the deprecatedtext=kwarg (BeautifulSoup 4.12 wantsstring=).property_listhrefbeing 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).