I can not work out how to move forward with this and whether what I have done so far is the correct way. Ultimately I would like to display the next rubbish day and color of rubbish coming up but not sure how to go about this.
The Castle Point website displays the current month and the following month, I have set up the following scrapes that returns a number corresponding to the date’s of rubbish colors:
- platform: scrape
name: First pink sack
resource: https://apps.castlepoint.gov.uk/cpapps/index.cfm?roadID=2758&fa=wastecalendar.displayDetails
select: '.pink'
index: 0
- platform: scrape
name: First black sack
resource: https://apps.castlepoint.gov.uk/cpapps/index.cfm?roadID=2758&fa=wastecalendar.displayDetails
select: '.normal'
index: 0
- platform: scrape
name: Second pink sack
resource: https://apps.castlepoint.gov.uk/cpapps/index.cfm?roadID=2758&fa=wastecalendar.displayDetails
select: '.pink'
index: 1
- platform: scrape
name: Second black sack
resource: https://apps.castlepoint.gov.uk/cpapps/index.cfm?roadID=2758&fa=wastecalendar.displayDetails
select: '.normal'
index: 1
- platform: scrape
name: Third pink sack
resource: https://apps.castlepoint.gov.uk/cpapps/index.cfm?roadID=2758&fa=wastecalendar.displayDetails
select: '.pink'
index: 2
- platform: scrape
name: Third black sack
resource: https://apps.castlepoint.gov.uk/cpapps/index.cfm?roadID=2758&fa=wastecalendar.displayDetails
select: '.normal'
index: 2
- platform: scrape
name: Fourth pink sack
resource: https://apps.castlepoint.gov.uk/cpapps/index.cfm?roadID=2758&fa=wastecalendar.displayDetails
select: '.pink'
index: 3
- platform: scrape
name: Fourth black sack
resource: https://apps.castlepoint.gov.uk/cpapps/index.cfm?roadID=2758&fa=wastecalendar.displayDetails
select: '.normal'
index: 3
- platform: scrape
name: Fifth pink sack
resource: https://apps.castlepoint.gov.uk/cpapps/index.cfm?roadID=2758&fa=wastecalendar.displayDetails
select: '.pink'
index: 4
- platform: scrape
name: Fifth black sack
resource: https://apps.castlepoint.gov.uk/cpapps/index.cfm?roadID=2758&fa=wastecalendar.displayDetails
select: '.normal'
index: 4
And:
- platform: scrape
name: Month current
resource: https://apps.castlepoint.gov.uk/cpapps/index.cfm?roadID=2758&fa=wastecalendar.displayDetails
select: 'h2'
index: 1
Gets me the current month.
I am struggling to get the information in a recognised state so as to compare it with the current date in a template to display the next rubbish day and color coming up.
Any ideas or suggestions would be much appreciated.