Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions other_examples/roshan-spotify/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
My code makes a request to the Art Institute of Chicago. You input whatever art id you want and you can get the thumbnail information.
10 changes: 10 additions & 0 deletions other_examples/roshan-spotify/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import requests
import json

print("Chicago art api call example")
id = input("Enter art id\n")

res = requests.get(f"https://api.artic.edu/api/v1/artworks/{id}")
res_json = res.json()

print('returned data:\n', res_json["data"]["thumbnail"])
3 changes: 3 additions & 0 deletions other_examples/roshan-spotify/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
maskpass
requests
json