microsoft / c9-python-getting-started

Sample code for Channel 9 Python for Beginners course
MIT License
7.75k stars 2.25k forks source link

Using URL in Calling APIs #77

Open sijithskumar opened 3 years ago

sijithskumar commented 3 years ago

I tried using image_path = input('URL: ') and

headers = {'Content-Type': 'application/json', 'Ocp-Apim-Subscription-Key': SUBSCRIPTION_KEY}

My intent was to pass on any url of any image from the internet as an input and to display the description of the image. It wouldn't work. OBVIOUSLY. Is it possible to make it work?