Added source kuringgai_nsw_gov_au.py

Added doc kuringgai_nsw_gov_au.md
Updated info.md and README.md with kuringgai info
Updated URPN info for scambs_gov_uk.
This commit is contained in:
Dave Thomas
2022-05-15 12:23:20 +01:00
parent ab3c67b782
commit 352c7f442a
5 changed files with 20 additions and 14 deletions

View File

@@ -57,11 +57,11 @@ Currently the following service providers are supported:
- [Banyule City Council](./doc/source/banyule_vic_gov_au.md)
- [Brisbane City Council](./doc/source/brisbane_qld_gov_au.md)
- [Campbelltown City Council](./doc/source/campbelltown_nsw_gov_au.md)
- [North Adelaide Waste Management Authority, South Australia](./doc/source/nawma_sa_gov_au.md)
- [The Hills Council, Sydney](./doc/source/thehills_nsw_gov_au.md)
- [Macedon Ranges Shire Council, Melbourne](./doc/source/mrsc_vic_gov_au.md)
- [Stonnington City Council, Melbourne](./doc/source/stonnington_vic_gov_au.md)
- [Ku-ring-gai Council](./doc/source/kuringgai_nsw_gov_au.md)
- [Macedon Ranges Shire Council, Melbourne](./doc/source/mrsc_vic_gov_au.md)
- [North Adelaide Waste Management Authority, South Australia](./doc/source/nawma_sa_gov_au.md)
- [Stonnington City Council, Melbourne](./doc/source/stonnington_vic_gov_au.md)
- [The Hills Council, Sydney](./doc/source/thehills_nsw_gov_au.md)
### Austria

View File

@@ -10,19 +10,19 @@ TITLE = "Ku-ring-gai Council"
DESCRIPTION = "Source for Ku-ring-gai Council waste collection."
URL = "https://www.krg.nsw.gov.au"
TEST_CASES = {
"house": {
"randomHouse": {
"post_code": "2070",
"suburb": "LINDFIELD",
"street_name": "Wolseley Road",
"street_number": "42",
},
"appartment": {
"RandomAppartment": {
"post_code": "2074",
"suburb": "WARRAWEE",
"street_name": "Cherry Street",
"street_number": "4/9",
},
"multiunit": {
"randomMultiunit": {
"post_code": "2075",
"suburb": "ST IVES",
"street_name": "Kitchener Street",
@@ -68,7 +68,7 @@ class Source:
locationId = 0
# 'collection' api call seems to require an ASP.Net_sessionID, so visit the site to obtain the relevant cookie
# 'collection' api call seems to require an ASP.Net_sessionID, so obtain the relevant cookie
s = requests.Session()
q = requote_uri(str(API_URLS["session"]))
r0 = s.get(q, headers = HEADERS)
@@ -102,7 +102,6 @@ class Source:
for item in services:
waste_type = item.find('h3').text
date = datetime.datetime.strptime(item.find('div', {'class': 'next-service'}).text.strip(), "%a %d/%m/%Y").date()
entries.append(
Collection(
date = date,

View File

@@ -483,12 +483,17 @@ waste_collection_schedule:
### South Cambridgeshire
To use this you need to idenfify your Unique Property Reference Number (UPRN):
To use this you need to idenfify your Unique Property Reference Number (UPRN). There are a couple of ways of doing this:
1. Go to [South Cambs Bin Collections](https://www.scambs.gov.uk/recycling-and-bins/find-your-household-bin-collection-day/)
2. Enter your post code, then select your address from the dropdown. The results page will show your collection schedule.
3. Your UPRN is the collection of digits at the end of the URL, for example: *scambs.gov.uk/recycling-and-bins/find-your-household-bin-collection-day/#id=`10008079869`*
4. The iCal collection schedule can then be obtained using: *refusecalendarapi.azurewebsites.net/calendar/ical/`10008079869`*
1. The easiest way to discover your UPRN is by using https://www.findmyaddress.co.uk/ and entering in your address details.
Or
2. By looking at the URLs generated by the South Cambs web site:
* 2.1. Go to [South Cambs Bin Collections](https://www.scambs.gov.uk/recycling-and-bins/find-your-household-bin-collection-day/)
* 2.2 Enter your post code, then select your address from the dropdown. The results page will show your collection schedule.
* 2.3. Your UPRN is the collection of digits at the end of the URL, for example: *scambs.gov.uk/recycling-and-bins/find-your-household-bin-collection-day/#id=`10008079869`*
* 2.4. The iCal collection schedule can then be obtained using: *refusecalendarapi.azurewebsites.net/calendar/ical/`10008079869`*
```yaml

View File

@@ -31,6 +31,7 @@ waste_collection_schedule:
## Example
```yaml
waste_collection_schedule:
sources:

View File

@@ -49,6 +49,7 @@ Currently the following service providers are supported:
- [Stonnington City Council, Melbourne](https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/stonnington_vic_gov_au.md)
- [The Hills Council, Sydney](https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/thehills_nsw_gov_au.md)
### Austria
- [BMV.at](https://github.com/mampfes/hacs_waste_collection_schedule/doc/source/bmv_at.md)