Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/tneudevteam/tneu-news

Scrape news in JSON from tneu.edu.ua
https://github.com/tneudevteam/tneu-news

npm-package parser scraper

Last synced: about 2 months ago
JSON representation

Scrape news in JSON from tneu.edu.ua

Awesome Lists containing this project

README

        

# @tneu/news [![CircleCI](https://img.shields.io/circleci/project/github/tneudevteam/tneu-news.svg)](https://circleci.com/gh/tneudevteam/tneu-news) ![](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)

> TNEU News Parser

## Install

```
$ yarn add @tneu/news
```

## Usage

```js
const {parsePage, getTotalPages} = require('@tneu/news');

const totalPages = await getTotalPages(); // 508
const page = await parsePage(1); // returns {items, pageNumber, totalPages, hasPrevious, hasNext}
```

And the object in `items` array looks like:

![](https://user-images.githubusercontent.com/3817380/37247418-47d25a0a-24c3-11e8-9651-ce7fb9c27c1a.png)

## License

MIT © [Vlad Holubiev](https://vladholubiev.com)