No release in over 3 years
Low commit activity in last 3 years
Scraper for the City of York Council Bin Collection page
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 10.0

Runtime

~> 1.10
 Project Readme

YorkBinCollection

This is an interface to the City of York website, scraping the calendar page for refuse collection (or using its JSON API where possible).

Installation

gem install york-bin-collection

Usage

require 'york-bin-collection'

# Get the unique ID (UPRN) for some property in a postcode
uprn = YorkBinCollection.get_uprns_for_postcode("YO10 1AB").sample

# Get the collection schedules
dates = YorkBinCollection.get_collection_dates(uprn)
dates.recycling # => [Date, Date, ...]
dates.household # => [Date, Date, ...]
dates.garden # => [Date, Date, ...]