when I am using the same URL as given in video to get the Facebook profile pic I am getting the error.why is it so?
Error while using givenURL
What error are you getting ?
when I am opening my jpg file it is asking to specify the python encoding and not showing the image
Can you please share your code so i can look into it
import requests facebook_id = 7 url = “http://graph.facebook.com/{}/picture?type = large”.format(4) print(url) r = requests.get(url)#returning response print(r.content) with open(“profile.jpg”,“wb”)as file: file.write(r.content)
now when i am opening the my jpg file its is asking me to specify the python encoding type
The same code is working fine for me . Make sure when you open that jpg file, you are doing so using jupyter notebook