spacepaste

  1.  
  2. import requests
  3. from bs4 import BeautifulSoup
  4. import ffmpeg
  5. s = requests.session()
  6. r = s.post('https://video.technion.ac.il/'+vid_attr[0].get('href'), verify=False)
  7. video_attr = BeautifulSoup(r.text,'html.parser')
  8. vid=video_attr.find_all('a',{'class':'closebox'})
  9. stream = ffmpeg.input(vid[0].get('href'))
  10. stream = ffmpeg.hflip(stream)
  11. #stream = ffmpeg.output(stream, 'output.mp4')
  12. ffmpeg.run(stream)
  13.