Allan-Cao / opgg_scraper

A simple web scraper to collect various data sets from op.gg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OPGG Scraper

This is a simple python scraper to pull down data from opgg.

Currently supports tier list for all lanes as well as skill orders for a specified champion in a specified lane.

This is also based on very specific formatting of opgg's website, so a redesign by them could break this at any time.

It is also exposed as an api at lol.lukegreen.xyz

Usage

$ python scrape.py <options>
Command Modifiers Description
-t all Display tier list of all lanes
adc Display adc tier list
jungle Display jungle tier list
support Display mid tier list
support Display support tier list
top Diplay top lane tier list
-so {champion} {lane} Display skill orders for a given champion and lane
-b {champion} {lane} Display optimal builds
-r {champion} {lane} Display optimal runes

Current TODOs:

  • get data for best runes

Things I have learned

  • Examining HTML structure for relevant data
  • Use Beautiful Soup to make scraping easier

About

A simple web scraper to collect various data sets from op.gg


Languages

Language:Python 60.6%Language:HTML 39.4%