Skip to content

RIA News (ria.ru) news parser.

License

Notifications You must be signed in to change notification settings

wilddip/rianews_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RiaNews Parser

ria.ru portal news parser.

Output format

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).
}

How to use?

  1. Clone repository.
git clone https://github.com/wilddip/rianews_parser.git
  1. Prepare modules.
yarn

If you haven't Yarn -> npm i -g yarn

  1. Fill nextUrl variable.

How-to guide is inside index.ts

  1. Start parsing.
yarn start
  1. Result.

Result avaliable in data.json file.

Disclaimer of liability

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.