opgg-duo-scraper
v3.1.0
Published
A promised based op.gg scraper for League of Legends but with 'recently played with' section.
Downloads
10
Maintainers
Readme
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