Python 3 API for Recollect Waste to obtain curbside collection information.
Find your place_id and service_id:
-
In Chrome open developer tools and go to network tab.
-
Go to your city's Recollect collection calendar.
-
Search for and select your address in the UI.
-
Watch for a request that looks like
https://api.recollect.net/api/places/(place_id)/services/(service_id)/events?nomerge ...
-
Use the place_id and service_id when instantiating a new RecollectWasteClient.
pip install recollect-waste
from datetime import date
import recollect_waste
# Instantiate client using your place identifier
client = recollect_waste.RecollectWasteClient("place_id","service_id")
# Get the next pickup event
pickup_event = client.get_next_pickup()
# Get pickup events between two dates
pickup_events = client.get_pickup_events(datetime.date(2019, 1, 1),datetime.date(2019, 2, 1))
tox
python setup.py sdist
Not affiliated with Recollect Waste.