Closed atulya2109 closed 7 years ago
http://statsroyale.com/profile/<tag>/refresh
seems to be working for refreshing profiles.. Let's just stick to requests and flask. I think they would do fine.
and what about battles
I will work on it too
How did you know it was refresh instead of refreshprofile
Just sniff your packets using mitmproxy (https://github.com/mitmproxy/mitmproxy)
Okay that is something new but i ll go through it asap
Our tool will have to pause for 20 secs too when refreshing profiles. Is that okay?
The url is called after twenty seconds of clicking or the results take twenty seconds .
I mean when we refresh the profile on statsroyale.com, it asks us to wait for 20 secs. So our tool too will wait till the time statsroyale.com updates itself.
We ll go with twenty seconds for now
Or we can dig deep to find a way to get the json response directly.
Is that evwn possible i think we will stick to twenty seconds for now
No, I don't think that will be easy. I don't play clash royale and I don't even know how that site fetches profiles. 20 secs ok then.
There is no official CR api and they are pulling the values from the game after reverse engineering it.
Can we use selenium web driver on a server. If we implement it in our code i don't believe it will work when we create a server to run the api's.