Read the statement by Michael Teeuw here.
Emergency service pharmacies in Germany
-
I would like to have a module that shows the current emergency pharmacies nearby. For Germany, there is for example this page for this. However, I cannot find an API or similar.
I have already experimented a bit with parsing the website, that would be a possible way to do it. But I don’t think it’s a clean solution and I’m not sure if it would be legally okay.
What would your approach be to implement this?
I found notdienst_api, but it only works in bavaria. If there is no better approach, I would possibly try to extend that package.
-
This post is deleted! -
@KristjanESPERANTO I think if they didn’t want you to get “inside” they would build it better. I.e. if they didn’t want you to scrape the data they would preserve it better.
The way i see it, you can use one of 2 URL’s to get the data and then scrape it. You require the area / postal code as input though and you can make the radius to search an option as well.
Pharmacy for postal/area code 80331 within 20km
https://www.aponet.de/apotheke/apothekensuche/80331/ /20Emergency Service 25km radius from postal code 65760
https://www.aponet.de/apotheke/notdienstsuche/65760/ /5Should be easy enough to scrape the data.
Anyway, they do provide widgets and the code for people to access the data.
See below link:
https://apotheken-notdienstdaten.de/aponet-download-service/ -
@mumblebaj Many thanks for the tips! :smiley:
I have meanwhile written to the operators of the website to see if they can offer an API. If not, I will probably follow your suggested approach.