So, I decided to take a shot at scraping the data from my county’s trash and recycling collection site:
https://www.baltimorecountymd.gov/Agencies/publicworks/solid_waste/collection-schedule.html
*Note: This is not my real address.
Here’s what my sensors look like:
- platform: scrape
resource: https://www.baltimorecountymd.gov/Agencies/publicworks/solid_waste/collection-schedule.html#/schedule/123%201ST%20AVE
name: Trash Collection Occurs
select: "tr:nth-of-type(1) td:nth-of-type(2)"
- platform: scrape
resource: https://www.baltimorecountymd.gov/Agencies/publicworks/solid_waste/collection-schedule.html#/schedule/123%201ST%20AVE
name: Recycling Collection Occurs
select: "tr:nth-of-type(2) td:nth-of-type(2)"
- platform: scrape
resource: https://www.baltimorecountymd.gov/Agencies/publicworks/solid_waste/collection-schedule.html#/schedule/123%201ST%20AVE
name: Trash Next Collection
select: "tr:nth-of-type(1) td:nth-of-type(3)"
- platform: scrape
resource: https://www.baltimorecountymd.gov/Agencies/publicworks/solid_waste/collection-schedule.html#/schedule/123%201ST%20AVE
name: Recycling Next Collection
select: "tr:nth-of-type(2) td:nth-of-type(3)"
However, in all of my attempts, the values are only returning unavailable.