ria.ru
portal news parser.
type Item = {
title: string, // Post's title.
date: Date, // Post's creation date (ISO timestamp string).
views: number, // Link to post.
link: string, // Count of post's views.
project?: string // Project internal name (post's link's subdomain as usual). Can be undefined (no project, just main website).
}
- Clone repository.
git clone https://github.com/wilddip/rianews_parser.git
- Prepare modules.
yarn
If you haven't Yarn ->
npm i -g yarn
- Fill
nextUrl
variable.
How-to guide is inside
index.ts
- Start parsing.
yarn start
- Result.
Result avaliable in
data.json
file.
This code is for educational purposes only.
How you use this code is your responsibility.
I will not be held accountable for any illegal activities.
Before use this code, read RIA News's Content Usage Rules. Thanks.