This Node.js web API scrapes news articles from various Dominican Republic news websites including Diario Libre, Listín Diario, Remolacha.net, El Nacional, and El Nuevo Diario.
- Clone the repository:
git clone https://github.com/neryad/api-scrapping-news.git
- Navigate to the project directory:
cd api-scrapping-news
- Install dependencies:
npm install
- Start the server:
npm start
- Make HTTP requests to the following endpoints:
- /diariolibre: Scrapes news from Diario Libre.
- /listin: Scrapes news from Listín Diario.
- /remolacha: Scrapes news from Remolacha.net.
- /nacional: Scrapes news from El Nacional.
- /nuevoDiario: Scrapes news from El Nuevo Diario.
curl http://localhost:3000/diariolibre
-
Diario Libre GET /diariolibre: Get news articles from Diario Libre.
-
Listín Diario GET /listin: Get news articles from Listín Diario.
-
Remolacha.net GET /remolacha: Get news articles from Remolacha.net.
-
El Nacional GET /nacional: Get news articles from El Nacional.
-
El Nuevo Diario GET /nuevoDiario: Get news articles from El Nuevo Diario.
Contributions are welcome! If you find any issues or want to add more features, feel free to open an issue or submit a pull request.
License This project is licensed under the ISC License. See the LICENSE file for details.