Skip to content

Get League of Legends data from Fandom in JSON format

Notifications You must be signed in to change notification settings

kknaga/league-wiki-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

League of Legends Wiki Data Fetcher

Get the latest data from wiki in JSON format

Using the script

you can either copy wiki.json from the repository or run the script to get the latest data.

npm i

npm run export

Using the package in your project

npm i league-wiki-fetcher
import { getWikiDataAsJson } from 'league-wiki-fetcher';

const skinsData = await getWikiDataAsJson('https://wiki.leagueoflegends.com/en-us/Module:SkinData/data');

The fetcher is defined with a single url to fetch and save as JSON. However, the logic for fetching data from wiki can be extended to other URLs as long as they're created in a similar way.

If you see any issues with this script please create an issue or roll your sleeves and create a PR.

About

Get League of Legends data from Fandom in JSON format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published