cgrok / cr-async Goto Github PK
View Code? Open in Web Editor NEWClash Royale stats in python
Home Page: http://cr-api.com/
License: MIT License
Clash Royale stats in python
Home Page: http://cr-api.com/
License: MIT License
2017-10-29T19:40:45.894855+00:00 app[worker.1]: Ignoring exception in command profile:
2017-10-29T19:40:45.895155+00:00 app[worker.1]: Traceback (most recent call last):
2017-10-29T19:40:45.895219+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.6/site-packages/discord/ext/commands/core.py", line 62, in wrapped
2017-10-29T19:40:45.895221+00:00 app[worker.1]: ret = yield from coro(*args, **kwargs)
2017-10-29T19:40:45.895240+00:00 app[worker.1]: File "/app/cogs/profile.py", line 38, in profile
2017-10-29T19:40:45.895241+00:00 app[worker.1]: clan = await profile.get_clan()
2017-10-29T19:40:45.895267+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.6/site-packages/crasync/core.py", line 92, in get_clan
2017-10-29T19:40:45.895269+00:00 app[worker.1]: data = await self.request(url)
2017-10-29T19:40:45.895286+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.6/site-packages/crasync/core.py", line 56, in request
2017-10-29T19:40:45.895287+00:00 app[worker.1]: data = await resp.json()
2017-10-29T19:40:45.895307+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.6/site-packages/aiohttp/client_reqrep.py", line 730, in json
2017-10-29T19:40:45.895308+00:00 app[worker.1]: headers=self.headers)
2017-10-29T19:40:45.895352+00:00 app[worker.1]: aiohttp.client_exceptions.ClientResponseError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html;
Traceback (most recent call last):
File "/app/cogs/utils.py", line 852, in _eval
ret = await func()
File "", line 4, in func
File "/app/.heroku/python/lib/python3.6/site-packages/crasync/core.py", line 65, in get_profile
return Profile(self, data)
File "/app/.heroku/python/lib/python3.6/site-packages/crasync/models.py", line 36, in init
self.from_data(data)
File "/app/.heroku/python/lib/python3.6/site-packages/crasync/models.py", line 258, in from_data
self.clan_tag = clan.get('tag')
AttributeError: 'NoneType' object has no attribute 'get'
might wanna add this so people don't have to manually set it
if there is, tell me, if not, this will be useful
cr-api uses http response codes to determine error state. Anything besides 200 contains error. Please implement.
profile.highest_trophies returns the challenge cards won
Assuming that you would still like to become the official wrapper for cr-api, please pick an async testing framework and include unit tests in a folder so that we can run + test to see that the framework is behaving properly.
Manual example testing with print statements cannot be automated and is prone to error.
link to docs
To make it easier to install, please consider making a document called requirements.txt
and put it in the top level.
Then run:
pip freeze > requirements.txt
to put all the required libraries there.
when I click on the link with docs it gives me 404.
lacking a lot
No matter that, ranked or unranked, clan.rank returns 0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.