GithubHelp home page GithubHelp logo

Comments (6)

Jackywathy avatar Jackywathy commented on August 11, 2024

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.

json2.txt

from rainbowsixsiege-python-api.

Danampasis avatar Danampasis commented on August 11, 2024

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.

Jackywathy avatar Jackywathy commented on August 11, 2024

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.

Jackywathy avatar Jackywathy commented on August 11, 2024

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.

Jackywathy avatar Jackywathy commented on August 11, 2024

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.

Jackywathy avatar Jackywathy commented on August 11, 2024

See Jackywathy@d9ca726

from rainbowsixsiege-python-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.