Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 1.47 KB

README.md

File metadata and controls

40 lines (33 loc) · 1.47 KB

@joggee-fr/mma-ref-parser

This tool parses mixed martial arts online articles from several sources to build Wikipedia.fr references using dedicated template Lien web.

Installation

After cloning the repository, use npm to install the needed dependencies.

$ npm install

As only ES modules are used, Node.js >= 14 is mandatory to run the tool.

Usage

Assuming working directory is in the project one. The script can be directly called from command line.

$ ./src/cli.js "https://mmajunkie.usatoday.com/2018/04/derrick-lewis-vs-francis-ngannou-booked-ufc-226-las-vegas"

Or npm tool can also be used.

$ npm run parse "https://mmajunkie.usatoday.com/2018/04/derrick-lewis-vs-francis-ngannou-booked-ufc-226-las-vegas"

-f or --force optional argument can be passed to force parsing using default processing if the website is not supported yet.

Supported websites