RoyaleAPI / cr-api

Clash Royale Analytics, Profiles and Insights. We no longer publish a public API. Please use the official API from Supercell.
https://RoyaleAPI.com
167 stars 20 forks source link

cr-api installation #93

Closed pieroaiello closed 6 years ago

pieroaiello commented 6 years ago

Hello to everyone, I recently found your site and I immediately cloned the repository and followed the instructions in the "Readme.md" file for installing the python code, but when I tried to launch it with "./run.py" the terminal opened a window and immediately closed it without turning on video output and / or showing results. I use a Windows 10 machine with Python 3.6.

Waiting for your answer I wish you a good day.

Gr8z commented 6 years ago

Hello,

please read the docs for details explanation on how to retrieve data from the API.

You don't need to clone this repo as it does not have any files you need to to use the API. The purpose of this repository is to submit issues.

Here is the link to the docs: https://docs.cr-api.com/#/profile/profile

If you are using Python, you may also want to use a python wrapper for CRAPI like this one : https://github.com/grokkers/cr-async

pieroaiello commented 6 years ago

Okay, that's what I understand, but my question was another, I wanted to launch the python script to study the operation and figure out where the user data is taken, whether from supercell servers or from one side and doing to turn everything into my car. I have read the documentation on how to use bees and I read the code to see how they have been developed and what makes me interesting because I'm a developer too, and I would like to clarify some of the procedures that I have not read by reading the code. However thank you the same for your answer.

fourjr commented 6 years ago

You can join the discord server to talk to the devs, and I don't think they are telling anyone publicly how they get data from the game servers

S1M0N38 commented 6 years ago

@pieroaiello Are you talking about cr-api/cr-api or about cr-api/cr-api-data ?

smlbiobot commented 6 years ago

Which repo did you clone? Because this repo has no ./run.py script. In fact, it is empty and is intended for opening issues for feature requests and bug reports only.

In any case, our code is not open. We get our data from supercell servers.

@pieroaiello

smlbiobot commented 6 years ago

Closing as non-issue.

pieroaiello commented 6 years ago

@S1M0N38 cr-api/cr-api-data

smlbiobot commented 6 years ago

@pieroaiello ok for cr-api-data you need to clone all submodules and install all requirements:

git clone --recursive https://github.com/cr-api/cr-api-data
pip install -r requirements.txt

However, this repo is only for generating static json files used at the http://api.cr-api.com/constants endpoint and has nothing to do with the core API.

pieroaiello commented 6 years ago

@smlbiobot the core API is not open?

smlbiobot commented 6 years ago

the core API is not open, no. We will look into it in the future. However, there are no immediate plans to open it.

pieroaiello commented 6 years ago

@smlbiobot ah ok, sorry, I thought it was entirely open source

S1M0N38 commented 6 years ago

@pieroaiello if you what to more how you can talk to supercell server join discord server