1.0.0 • Published 1 year ago

ees-announcements-scraper-v2 v1.0.0

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
1 year ago

ees-announcements-scraper-v2

Scraper that gets the announcements from EES postgraduate programme of NTUA.

Description

A Node.js package that scraps the new EES site and retrieve the announcements of the programme. This package is quite useful for thesis work or other academic projects.

Usage

Install

First install the package using npm:

npm install --save ees-announcements-scraper-v2

Then, require the package and use it like so:

const eesScraperV2 = require('ees-announcements-scraper-v2');

var eesAnnouncements = eesScraperV2.getDetailedAnnouncements();

eesAnnouncements.then(function (results) {
  console.log("eesAnnouncements", results);
});

Functions Documentation

getTitleAnnouncements

Returns all announcements as an array of objects with the below details:

  • title
  • date
  • link

getDetailedAnnouncements

Returns all announcements as an array of objects with the below details:

  • title
  • content
  • date
  • link
  • files

getSpecificAnnouncementFromUrl

Returns specific announcement as a json object with the below details:

  • title
  • content
  • files

getSpecificAnnouncementFromBasicObject

Returns specific announcement as a json object with the below details:

  • title
  • content
  • date
  • link
  • files

License

GNU GPLv3