Skip to content

A npm package that uses Puppeteer to scrape OP.GG for League of Legends stats. Including the Recently Played With (Last 20 games) section.

License

Notifications You must be signed in to change notification settings

jesusyanez/opgg-duo-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

A promised based op.gg scraper for League of Legends but with 'recently played with' section.

Usage

const opggDuoScraper = require('opgg-duo-scraper');

opggDuoScraper.getStats('yassuo', 'na', false).
    then(stats => console.log(stats))       
// Output
{
  Name: 'yassuo',
  Level: '386',
  ProfilePic: 'https://opgg-static.akamaized.net/images/profile_icons/profileIcon1413.jpg?image=q_auto&image=q_auto,f_png,w_auto&v=1652778226640',
  RecentlyPlayedWith: [
    [ 'Summoner', 'Games', 'W - L', 'Win Rate' ],
    [ 'skb', '3', '2 - 1', '67%' ],
    [ 'POOGERS', '3', '2 - 1', '67%' ],
    [ '1083', '2', '0 - 2', '0%' ],
    [ 'Chimp', '2', '2 - 0', '100%' ],
    [ 'evergreenily', '2', '2 - 0', '100%' ],
    [ 'Heat Waves', '2', '2 - 0', '100%' ],
    [ 'Plat Players Suc', '2', '0 - 2', '0%' ],
    [ 'EmbraceLife', '2', '1 - 1', '50%' ]
  ]
}

Paramaters

getStats(username: string, region: string, refresh: boolean)

Regions

na kr oce jp euw eune lan br las ru tr

About

A npm package that uses Puppeteer to scrape OP.GG for League of Legends stats. Including the Recently Played With (Last 20 games) section.

Topics

Resources

License

Stars

Watchers

Forks