Started noodling on this with scrapy. I've knocked up a spider class which can spit out a lit of objects like
[
{
"local_auth": "bolsover",
"latest_stage": "The Bolsover (Electoral Changes) Order 2017"
},
{
"local_auth": "basingstoke-and-deane",
"latest_stage": "Consultation on warding arrangements"
},
{
"local_auth": "babergh",
"latest_stage": "Consultation on draft recommendations"
}
]
This allows us to work out what stage each review is at while it is in progress. Next job is to actually use the spider inside the main scraper so we can save the results to the database, work out when the description changes and raise Slack/GH notifications based on those events..
Refs #6
Started noodling on this with scrapy. I've knocked up a spider class which can spit out a lit of objects like
This allows us to work out what stage each review is at while it is in progress. Next job is to actually use the spider inside the main scraper so we can save the results to the database, work out when the description changes and raise Slack/GH notifications based on those events..