Comments (3)
You can find information on how to get the full URL at https://developer.riotgames.com/docs/static-data.
Currently Cass doesn't fill the entire URL in automatically, as many URLs require a data dragon version; we would need a call to the Versions endpoint, which currently isn't cached. We're playing with options on the next major version to make this happen though
from cassiopeia.
Ah okay thanks for the info So basically you need to check for the first result in https://ddragon.leagueoflegends.com/api/versions.json?
And the entire URL would then be http://ddragon.leagueoflegends.com/cdn/ + first result + /img/champion/Karma.png:
http://ddragon.leagueoflegends.com/cdn/6.6.1/img/champion/Karma.png
from cassiopeia.
That's the process. You can also get the latest version using riotapi.get_versions()[0]
from cassiopeia.
Related Issues (20)
- AttributeError: 'Match' object has no attribute '_lazy__timeline' HOT 1
- Add SEA region for OC1 HOT 1
- TypeError: '<' not supported between instances of 'Position' and 'Position' HOT 1
- IndexError: list index out of range when requesting the position too early in the game HOT 4
- Lane information
- Type-hinting of Match.participants is wrong? HOT 3
- How to get positions more than once every minute?
- Method __str__ of class SummonerSpell doesn't work as intended HOT 8
- CumulativeTimeline object doesn't have all the info available in the API HOT 2
- Missing platforms in Region Enum HOT 1
- Add `getByRiotId`, Add riot ID to summoner data HOT 10
- New release HOT 1
- New queue types need to be added to cassiopeia HOT 1
- Need update HOT 1
- Spectator-V4 API not available since Apr 8, 2024 HOT 3
- ACCOUNT-V1 seems to be using the wrong region for PH. HOT 1
- get_account does not allow you to set a region HOT 3
- AttributeError: 'Participant' object has no attribute '_lazy__champion' HOT 1
- Support RSO? HOT 2
- How i can catch the exceptions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cassiopeia.