fix abfallnavi_de

abfallnavi.de changed their service api. Now it is no sufficient any
more to use the extracted street or house number id to fetch the dates
because the ids frequently change. Therefore it is now mandatory to
specify city, street and house number and the scraper has to query the
current id every time.
This commit is contained in:
mampfes
2020-12-29 11:01:32 +01:00
parent 07a822f6f8
commit 005e57f9ee
6 changed files with 225 additions and 95 deletions

View File

@@ -10,6 +10,7 @@ waste_collection_schedule:
- name: abfallnavi_de
args:
service: SERVICE
ort: SERVICE
strasse: STRASSE
hausnummer: hausnummer
```
@@ -19,11 +20,14 @@ waste_collection_schedule:
**service**<br>
*(string) (required)*
**ort**<br>
*(string) (required)*
**strasse**<br>
*(integer) (required)*
*(string) (required)*
**hausnummer**<br>
*(integer) (optional)*
*(string) (optional)*
## Example
@@ -32,8 +36,9 @@ waste_collection_schedule:
sources:
- name: abfallnavi_de
args:
service: lindlar
strasse: 53585
service: coe
ort: Coesfeld
strasse: Ahornweg
```
## How to get the source arguments
@@ -42,4 +47,4 @@ There is a script with an interactive command line interface which generates the
[https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/custom_components/waste_collection_schedule/package/wizard/abfallnavi_de.py](https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/custom_components/waste_collection_schedule/package/wizard/abfallnavi_de.py).
Just run this script from a shell and answer the questions.
Just run this script from a shell and answer the questions.