lagertonne / ahpi Goto Github PK
View Code? Open in Web Editor NEWGet "Abfuhrtermine" from AHA (Zweckverband Abfallwirtschaft Region Hannover)
License: MIT License
Get "Abfuhrtermine" from AHA (Zweckverband Abfallwirtschaft Region Hannover)
License: MIT License
Hey @Lagertonne
Useful project. Thank you!
Would you be so kind to add a permissive License to this repository to facilitate reuse of the code?
Some streets require an Abholplatz to be provided to get Abholtermine. Unfortunately there seems to be no argument to pass the Abholplatz if it is required for a given street and hausnr.
❯ python3 ahpi.py --gemeinde Hannover --street "Vahrenwalder Str." --hausnr 101
=== Bioabfall ===
Di, 11.01.2022
Di, 18.01.2022
Di, 25.01.2022
=== Restabfall ===
Di, 11.01.2022
Di, 18.01.2022
Di, 25.01.2022
=== Papier ===
Di, 11.01.2022
Di, 18.01.2022
Di, 25.01.2022
=== Leichtverpackungen ===
Di, 11.01.2022
Di, 18.01.2022
Di, 25.01.2022
❯ python3 ahpi.py --gemeinde Hannover --street "Vahrenwalder Str." --hausnr 100
Traceback (most recent call last):
File "/Users/d.aberger/src/ahpi/ahpi.py", line 94, in <module>
abholungen = get_abholungen(args.gemeinde, args.street, args.hausnr)
File "/Users/d.aberger/src/ahpi/ahpi.py", line 74, in get_abholungen
return __build_abholungen(gemeinde, street, hausnr)
File "/Users/d.aberger/src/ahpi/ahpi.py", line 63, in __build_abholungen
abholungen = soup.find("img", {"title": trash_type}).parent.parent.parent.select('tr > td')
AttributeError: 'NoneType' object has no attribute 'parent'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.