Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sebalp100/search-test

Simple NodeJs api to do web scraping
https://github.com/sebalp100/search-test

Last synced: about 1 month ago
JSON representation

Simple NodeJs api to do web scraping

Awesome Lists containing this project

README

        

This basic NodeJs API allows users to scrape data from websites and store it in MongoDB.

env variables used:

- `DATABASE_URL=` the mongoDb url for connection
- `JWT_SECRET_KEY=` the secret for the jwt creation

Endpoints:

- `http://localhost:5000/api/auth/register` to register
- `http://localhost:5000/api/auth/login` to login
- `http://localhost:5000/api/crawl` to extract data from a URL