Skip to content

areindl/notdienst_api

Repository files navigation

Apotheken Notdienst Crawler

UPDATE: BLAK changed their website and the crawler is not working anymore. I will not update this project anymore.

The crawler is not working anymore because the website changed because BLAK now provides a free XML API. Register here: https://www.blak.de/notdienst/notdienst-und-dienstbereitschaft/schnittstelle-xml-html


A simple crawler in Node.js to build an API to get the current emergency pharmacies for a given location in Germany directly from BLAK. I needed that quickly for a small project.

Introduction

This repository contains code for a web crawler that scrapes a website. The API can be published using a serverless lambda functions at hosting providers like Netlify.

Comes with absolutely no warranty, API is subject to change and it needs refactoring / sanity measures. Use on your own risk.

Installation

Clone the repository

Install dependencies: npm install

This project was built with the following tools:

  • Node: A JavaScript runtime built on Chrome's V8 JavaScript engine.
  • Axios: A promised based HTTP client for the browser and Node.js.
  • Cheerio: A lightweight implementation of jQuery which provided access to the DOM on the server.

Demo

Netlify Status

I deployed the API using Netlify's serverless functions:

License

This project is licensed under the MIT license.

Releases

No releases published

Packages

 
 
 

Contributors