Closed vivipiu closed 5 years ago
Here's an example:
runes = cass.Runes(region="NA")
rune = runes[0]
print(rune.image.url)
Outputs:
https://ddragon.leagueoflegends.com/cdn/img/perk-images/Styles/Domination/Electrocute/Electrocute.png
Does that help?
It doesn't unfortunately since I'm looking for Domination
's image url:
https://ddragon.leagueoflegends.com/cdn/img/perk-images/Styles/7200_Domination.png
Right now we unfortunately don't have these URLs in Cass, but you can find all the filenames in the runesReforged.json
file in datadragon.
Awe, okay. Thank you for the help!
Hey you can now access these images from the rune path objects using .image_url
. For example:
runes = cass.Runes(region="NA")
rune = runes[0]
url = rune.path.image_url
Hey, I couldn't find a way to get the image url for rune categories like Domination, Sorcery etc. Any idea how I can get it through cassiopeia?
Thanks!