I am trying to grab this image (https://www.cpc.ncep.noaa.gov/products/predictions/814day/814temp.new.gif) but everything I have tried hasn't worked.
This is my latest attempt that didn't work....
I am trying to grab this image (https://www.cpc.ncep.noaa.gov/products/predictions/814day/814temp.new.gif) but everything I have tried hasn't worked.
This is my latest attempt that didn't work....
To save the GIF image from the webpage, use requests.get(<URL>).content directly. For example:
import requests
url = (
"https://www.cpc.ncep.noaa.gov/products/predictions/814day/814temp.new.gif"
)
with open("814temp.new.gif", "wb") as f_out:
f_out.write(requests.get(url).content)
This saves the file 814temp.new.gif