How to download this video using Selenium How to download this video using Selenium selenium selenium

How to download this video using Selenium


interesting that you are using both beautifulsoup and selenium. this task might be able to be accomplished using either one exclusively (with exceptions)

You won't use Selenium to download the video, per se. You'll use the language of choice. In your case, Python.

Python 2

import urllib...video_url = video.get_property('src')urllib.urlretrieve(video_url, 'videoname.mp4')

Python 3

import urllib.request...video_url = video.get_property('src')urllib.request.urlretrieve(video_url, 'videoname.mp4')

You'll probably have to calculate videoname.mp4 somehow so you don't get duplicates