Looked into getting our recycling/waste collection info into Home Assistant. There’s a popular integration, but it insists on using Selenium to drive a browser?! Bashed together a script to scrape the page and output JSON instead.
=> More informations about this toot | More toots from Drarok@mastodon.social
@Drarok this is what I use. Not perfect but does the job and very actively updated.
https://github.com/robbrad/UKBinCollectionData
=> More informations about this toot | More toots from Marcus@k8s.social
@Marcus yeah, that’s the one I found. Bizarre approach.
“Some councils need Selenium to run the scrape on behalf of Home Assistant.”
=> More informations about this toot | More toots from Drarok@mastodon.social
@Drarok you’re Oxfordshire council right? Pretty sure it doesn’t need it.
=> More informations about this toot | More toots from Marcus@k8s.social
@Marcus nope, Wychavon these days!
=> More informations about this toot | More toots from Drarok@mastodon.social
@Drarok oh wow! Nevermind then 🤣
=> More informations about this toot | More toots from Marcus@k8s.social This content has been proxied by September (3851b).Proxy Information
text/gemini