Comments (6)
a bit of digging later, seems like they're using graphQL to store the operator and querying it via client side javascript. I've managed to extract a raw json file containing the information - search for an operator name like maverick in the source and one of the results is giant blob of javascript which the json file is contained in.
from rainbowsixsiege-python-api.
Hey, can you please explain the steps you took to extract the .json file? Maybe we can find the other .json files like that too, for the rewards, seasons, and ranks
from rainbowsixsiege-python-api.
i went on the ubisoft stat tracking website (https://www.ubisoft.com/en-us/game/rainbow-six/siege/stats), then searched the html for operator
. There was an inline script function starting with window__PRELOADED_STATE__ = blah
which was the json (well technically javascipt object) with all the information. I've been able extract rank, operator + loadout and maps definitions. I've attached them below, but maybe you can make sense of the other fields that I have missed. There's also some variables that change per-account, so see if you get anything different.
From now on i think we should rely on our own definitions rather than using the r6hash.tk website which seems to have gone down - I think the owner of that domain forgot/don't want to re-register it. So far I've been working on operator and loadout definitions, which (fingers crossed) will be completed by tonight or tomorrow.
operators.txt
maps.txt
ranks.txt
from rainbowsixsiege-python-api.
WIP here, have gotten get_operator to work with a new definitions system
https://github.com/Jackywathy/RainbowSixSiege-Python-API/tree/bugfix/definition-hashes
from rainbowsixsiege-python-api.
Fixed most of the definitions issues here https://github.com/Jackywathy/RainbowSixSiege-Python-API/tree/bugfix/definition-hashes. All basic functions like kills, deaths etc as well as operator unique abilities are supported (minus aruni's gate stats). Going to clean it up a little before I send a pull request.
from rainbowsixsiege-python-api.
from rainbowsixsiege-python-api.
Related Issues (20)
- aiohttp version HOT 2
- Can't get examples to work, let alone the API HOT 1
- basic example fails HOT 2
- Error with the request of _lat_data dictionary HOT 1
- Tons of new endpoints HOT 4
- aiohttp content type error HOT 4
- player.get_rank() is broken (https://r6unhash.tk/) outdated? HOT 2
- Implement Maps support
- Support for aiohttp 3.6.3?
- BUG: Impossible to get operator badges HOT 2
- FEATURE: Operator stats for specific gamequeues
- Drop python 3.4 support HOT 1
- BUG: rank is always unranked HOT 1
- BUG: Calling load_rank / get_rank freezes loop HOT 2
- game-rainbow6.ubi.com having moved to new url HOT 3
- TypeError: quote_from_bytes() expected bytes Error
- Add Flores to operator definitions HOT 2
- Update the API HOT 2
- Error with default code HOT 3
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 rainbowsixsiege-python-api.