Здравствуйте! Есть скрипт парсера написанный на питоне, как спарсить видео ?
пробую так :
try:
fb_video = block.find('source', class_='video-player').get(
'src')
# print(fb_video)
except Exception as er:
# print(er)
fb_video = ' '
Не получается....
А вот код html код
<div class="video-player"><video preload="metadata" class="video-player__video"><source src="https://275129.selcdn.ru/macaw/da9f8edbf08737a6358a.mp4" type="video/mp4"></video><div class="video-player__controls"><div class="video-player__control video-player__control--play"><div type="button" class="video-player__play"></div></div><div class="video-player__control video-player__control--progress-bar"><div class="video-player__progress-bar"><div class="video-player__buffer-value" style="width: 99.3798%;"></div><div class="video-player__progress-value" style="width: 10.0246%;"></div></div></div><div class="video-player__control video-player__control--time"><div class="video-player__time">-0:22</div></div><div class="video-player__control video-player__control--mute"><div class="video-player__mute"></div></div><div class="video-player__control video-player__control--fullscreen"><div class="video-player__fullscreen"></div></div></div></div>
Спарсить надо ссылку