]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/skylinewebcams.py
5b4aaac6febdcb82c19eb82777a1f2fb72001eeb
2 from __future__
import unicode_literals
4 from .common
import InfoExtractor
7 class SkylineWebcamsIE(InfoExtractor
):
8 _VALID_URL
= r
'https?://(?:www\.)?skylinewebcams\.com/[^/]+/webcam/(?:[^/]+/)+(?P<id>[^/]+)\.html'
10 'url': 'https://www.skylinewebcams.com/it/webcam/italia/lazio/roma/scalinata-piazza-di-spagna-barcaccia.html',
12 'id': 'scalinata-piazza-di-spagna-barcaccia',
14 'title': 're:^Live Webcam Scalinata di Piazza di Spagna - La Barcaccia [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$',
15 'description': 'Roma, veduta sulla Scalinata di Piazza di Spagna e sulla Barcaccia',
19 'skip_download': True,
23 def _real_extract(self
, url
):
24 video_id
= self
._match
_id
(url
)
26 webpage
= self
._download
_webpage
(url
, video_id
)
28 stream_url
= self
._search
_regex
(
29 r
'url\s*:\s*(["\'])(?P
<url
>(?
:https?
:)?
//.+?\
.m3u8
.*?
)\
1', webpage,
30 'stream url
', group='url
')
32 title = self._og_search_title(webpage)
33 description = self._og_search_description(webpage)
39 'title
': self._live_title(title),
40 'description
': description,