Skip to content

Ruby interface and scraper for City of York waste collection

License

Notifications You must be signed in to change notification settings

AaronC81/york-bin-collection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, ...]

About

Ruby interface and scraper for City of York waste collection

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages