Sports Management

 

A huge list of more than 20 thousand APIs – you should have no trouble finding one you have some interest in!
http://www.programmableweb.com/category/all/apis
Here are some fun ones:
Art: https://metmuseum.github.io/
Sports: https://developer.sportradar.com/, https://probasketballapi.com/
Weather: https://openweathermap.org/api
Beer: http://www.brewerydb.com/developers
Nutrition: https://www.nutritionix.com/business/api and https://ndb.nal.usda.gov/api-guide.html
Reddit: https://www.reddit.com/dev/api/
Youtube: https://developers.google.com/youtube/
Marvel Comics: https://developer.marvel.com/
Money: https://github.com/Live-Rates/live-rates.com
Or any other data API you can find on the internet.
Task
The task is to use the requests package (do not use possibly existing specific python packages for the API) to:
interact with the API
create a dataset with multiple records by requesting data from the API using the requests package
write a simple API client, i.e. a function that would make downloading/interacting with the API simple for a Python user who does not
know requests
1. Choose an API
a) Choose an API and briefly describe the type of data you can obtain from it. Note: Please do not use any of the APIs we covered in lecture
(e.g. NYTimes, Github etc.).
b) Provide a link to the API documentation and
c) the base URL of the API you intend to use.
2. Authentication
a) Briefly explain how the API authenticates the user. b) Apply for an API key if necessary and provide the information (with relevant URL)
how that can be done. Do not include the API key in the assignment submission.
3. Send a Simple GET request
a) Execute a simple GET request to obtain a small amount of data from the API. Describe a few query parameters and add them to the
query. If you have a choice of the output the API returns (e.g. XML or JSON), I suggest to choose JSON because it easier to work with. Your
output here should include the code for the GET request, including the query parameters, as well as a snippet of the output.
b) Check (and show) the status of the request.
c) Check (and show) the type of the response (e.g. XML, JSON, csv).
4. Parse the response and Create a dataset
a) Take the response returned by the API and turn it into a useful Python object (e.g. a list, vector, or pandas data frame). Show the code
how this is done.
b) Using the API, create a dataset (in data frame format) for multiple records. I’d say a sample size greater than 100 is sufficient for the
example but feel free to get more data if you feel ambitious and the API allows you to do that fairly easily. The dataset can include only a
small subset of the returned data. Just choose some interesting features. There is no need to be inclusive here.
c) Provide some summary statistics of the data. Include the data frame in a .csv file called data.csv with your submission for the grader.

 

 

Sample Solution

API is the acronym for Application Programming Interface, which is a software intermediary that allows two applications to talk to each other. Each time you use an app like Facebook, send an instant message, or check the weather on your phone, you’re using an API. When you use an application on your mobile phone, the application connects to the Internet and sends data to a server. The server then retrieves that data, interprets it, performs the necessary actions and sends it back to your phone. The application then interprets that data and presents you with the information you wanted in a readable way. This is what an API is – all of this happens via API.

Music and God GuidesorSubmit my paper for investigation descriptive exposition sampleIt appears the contentions for demonstrating or discrediting God’s (or a god’s) presence will never be nailed down as outright facts. More often than not, one turns into a nonbeliever or an individual of religious on a type of rationale or a kind of feeling that is by and by alluring, however this rationale or feeling can’t be said to be essential fact of the matter (Harper, 12). Through rationale and feeling, the two sides of the contention for holiness and an absence of heavenliness can be “demonstrated.” For me, music has been one of the bits of proof for the presence of God or a divine being. At the point when I tune in to Sufi music, especially qawwali music, I get into conditions of delight and sentiments of spiritualist change. Sufism is an otherworldly faction of Islam that places extraordinary significance on music as a device to place individuals in a condition of unity with the celestial. In qawwali music, the expressions of holy people are joined with irresistible rhythms and taking off tunes. At the point when an audience tunes into a qawwali eagerly, commonly the audience will eventually feel a change in their awareness, which could be said to resemble feeling the mood of the Universe, or a sentiment of unity having profound tones (Garge, 10). This happened to me frequently while tuning in to a specific maestro of qawwali music, Ustad Nusrat Fateh Ali Khan. I am not a Muslim, or a Sufi, yet was interested to hear something new when I originally got a CD of the acclaimed vocalist from an auntie of mine. I had been tuning in to for the most part elective awesome music, and a first tuning in of Ustad Nusrat Fateh Ali Khan astonished me and gave me prompt amazement. There was something in his voice that had a specific substance I was unable to deny. Afterward, I understood this substance was the spiritualist commitment the vocalist communicated and of which I felt definitely with numerous listenings. This probably won’t sound totally logical, as it can’t be tried or watched carefully (starting at now), however its belongings and the encounters that are a consequence of those impacts are hard to deny in the event that they transpire by and by. Also, it isn’t simply me encountering ordinary impacts of rapture tuning in to Ustad Nusrat Fateh Ali Khan’s music—a great many audience members make a case for feel a feeling of profound satisfaction while making the most of his music (Byth, 32). Furthermore, shockingly, a considerable lot of the individuals who guarantee this are neither strict or profoundly disapproved. It appears individuals get mysteriously mesmerized by Ustad Nusrat Fateh Ali Khan’s music whether it was proposed to. There may never be any evidence possibly in support of God’s or a divine being’s presence, or whether we would comprehend what this verification might be. However, when I tune in to Ustad Nusrat Fateh Ali Khan’s bolting vocals, it brings me into a condition of rapture and I believe I am getting in contact with the interminable soul the spiritualists discussed and still discussion about. I might be daydreaming each time I tune in to this music, without the utilization of medications, however I decide to accept this is exceptionally unrealistic. Or maybe, I acknowledge this music communicates godlikeness and this articulation can be felt by the audience members of this music. References Harper, Bill. “Demonstrations of Supplication.” Blind Man Press. New York: 2008. Print. Garge, Melanie. “Sufi Orders.” Mystical Books. Chicago: 2011. Print. Byth, George. “Lord of Qaww

This question has been answered.

Get Answer
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, Welcome to Compliant Papers.