johnwmillr / sportradarapis Goto Github PK
View Code? Open in Web Editor NEWPython wrapper for the Sportradar APIs โฝ๏ธ๐
License: MIT License
Python wrapper for the Sportradar APIs โฝ๏ธ๐
License: MIT License
Hi,
I was trying to reproduce the provided example on github but I'm getting JSON Decoder error. I tried to backtrack the issue and it seems like its not passing the API key correctly.
Can you please help me fixing this.
Following is the error I'm getting:
soccer-t3/intl/en/tournaments
http://api.sportradar.us/soccer-t3/intl/en/tournaments.json
Traceback (most recent call last):
File "/Users/qasimali/PycharmProjects/sportradar/main.py", line 23, in
tournaments = sr.get_tournaments().json()
File "/Users/qasimali/PycharmProjects/sportradar/venv/lib/python3.9/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
It would be convenient to have a built-in option for saving data to a JSON or XML file. The method will probably go inside the base API
class.
Is your feature request related to a problem? Please describe.
As user, It'd be nice to have support for Motorsport SportRadar API
Describe the solution you'd like
Implement new Motorsport API wrapper.
Describe alternatives you've considered
Creating a new API Class for Motorsport.
Additional context
N/A
Is your feature request related to a problem? Please describe.
It'd be nice to have support for Formula 1 SportRadar API
Describe the solution you'd like
Implement new Formula 1 API Wrapper.
Describe alternatives you've considered
Creating a new API Class for Formula 1.
Additional context
N/A
Is there a way to get a player ID from their name only? I haven't been able to figure out a way to do so.
Is your feature request related to a problem? Please describe.
No. I just need support for the push API.
Describe the solution you'd like
Implement push APIs from Soccer V3.
Describe alternatives you've considered
Writing a subclass of Soccer.
Additional context
None.
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.