areindl / notdienst_api

A simple API to get the current emergency pharmacies for a given location in Germany

Home Page:https://apotheken-notdienst-api.netlify.app/.netlify/functions/server?lat=48.135124&lon=11.581981&date=1588702203721

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A simple API to get the current emergency pharmacies for a given location in Germany

https://apotheken-notdienst-api.netlify.app/.netlify/functions/server?lat=48.135124&lon=11.581981&date=1588702203721

License:MIT License


Languages

Language:JavaScript 99.4%Language:HTML 0.6%