src.core.apis.ddragon module

api scaping for ddragon

src.core.apis.ddragon.loadIdDataSet(dataRequested, patch=None)[source]

Saves and loads the IDs for data related to league games.

Parameters:
  • dataRequested (str) – Determines the dataSet, which the function will load. Currently supported: “summoner”, “perk”, “champion”, “item”,

  • patch (str) – optional argument - specifies a patch

Returns:

data_dict – The Dictionary, which has the wanted lol data

Return type:

dict

Generates an API Link for ddragon, by giving the type of data requested

Parameters:
  • dataRequested (str) – Determines the data, which the function will pull. Currently supported: “summoner”, “perk”, “champion”, “item”

  • patch (str) – optional argument - specifies a custom patch

Returns:

link – The link according to the wanted type of data

Return type:

str

src.core.apis.ddragon.scrapeRecentPatch()[source]

scrapes the recent patch

The recent patch gets scraped. period

Returns:

patch – the recent patch number as a string

Return type:

str

Dependency Diagrams (without externals):

digraph imports {
  rankdir=LR;
  node [shape=box];
  "src.core.process.map" -> "src.core.apis.ddragon";
}

Import dependencies (collapsed)

Dependency Diagrams:

digraph imports {
  rankdir=LR;
  node [shape=box];
  "src.core.process.map" -> "src.core.apis.ddragon";
}

Import dependencies (collapsed)