I am getting the link of a gif from a site using bs4, it saves the url as a gif just fine since I can find the gif and open it from the file, however when I run the code it says it cant find the directory named "/tmp/fo.gif".
gif = soup.select_one("#gif.borders") or ""
if gif:
gif = str(soup.img["src"])
with open('/tmp/fo.gif', 'wb') as f:
f.write(requests.get(gif).content)
gif = Image.open('/tmp/fo.gif')
gif = (gif.n_frames)