Skip to content

areindl/notdienst_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apotheken Notdienst Crawler

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 pubslished using a serverless lambda functions at hosters 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.

Credits

Thanks to this tutorial by Logrocket.