M
M
mirindanda2021-12-07 22:24:13
Python
mirindanda, 2021-12-07 22:24:13

"Traceback (most recent call last):"?

import urllib.request
import os
os.system('cls')

link = " https://api.nasa.gov/planetary/apod?api_key=DEMO_K... "

open_link = urllib.request.urlopen(link)

data = open_link.read()

print(data)

metadata = {
data
}

print(["url"])

This error keeps popping up, what should I do? And if someone knows how to get the URL to the image, that would be nice too, thanks!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question