Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tneudevteam/tneu-news
- Owner: tneudevteam
- License: mit
- Created: 2018-03-10T22:16:00.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-11T18:01:26.000Z (almost 7 years ago)
- Last Synced: 2024-11-14T19:02:51.905Z (about 2 months ago)
- Topics: npm-package, parser, scraper
- Language: HTML
- Size: 110 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
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)