Skip to content

A data scraper that sends new posts from University of Montenegro's Faculty of Electrical Engineering to users via Mailchimp newsletter

Notifications You must be signed in to change notification settings

wem1c/etf-obavijesti

Repository files navigation

What is this?

A simple web scraper that grabs the latest news in the past 24 hours from The University of Montenegro and sends them via plaintext email. For now it only scrapes The Faculty of Electrical Engineering.

The scraper itself is a JS scraper using cheerio and axios.

The cron job that manages the scraper is actually controlled by upstash. Using upstash's Qstash, there's an HTTP request made to the web apps Next API at /api/cron. This endpoint handles the scraping via internal functions, and the creation and sending of a new Mailchimp campaing via Mailchimp's Node package.

The frontend holds a tiny newsletter subscription form.

Tech used

Development

Prerequisites

Installation

  1. Clone this repository
  2. Install dependencies via npm install
  3. Run npm run dev to start the development server
  4. Run npm run build to build the project
  5. Run npm run start to start the local server

Licence

The content of this project itself is licensed under the Creative Commons Attribution 3.0 Unported license, and the underlying source code used to format and display that content is licensed under the MIT license.

About

A data scraper that sends new posts from University of Montenegro's Faculty of Electrical Engineering to users via Mailchimp newsletter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published