import requests from bs4 import BeautifulSoup import ffmpeg s = requests.session() r = s.post('https://video.technion.ac.il/'+vid_attr[0].get('href'), verify=False) video_attr = BeautifulSoup(r.text,'html.parser') vid=video_attr.find_all('a',{'class':'closebox'}) stream = ffmpeg.input(vid[0].get('href')) stream = ffmpeg.hflip(stream) #stream = ffmpeg.output(stream, 'output.mp4') ffmpeg.run(stream)