1 from .common
import InfoExtractor
4 class SkylineWebcamsIE(InfoExtractor
):
6 _VALID_URL
= r
'https?://(?:www\.)?skylinewebcams\.com/[^/]+/webcam/(?:[^/]+/)+(?P<id>[^/]+)\.html'
8 'url': 'https://www.skylinewebcams.com/it/webcam/italia/lazio/roma/scalinata-piazza-di-spagna-barcaccia.html',
10 'id': 'scalinata-piazza-di-spagna-barcaccia',
12 '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}$',
13 'description': 'Roma, veduta sulla Scalinata di Piazza di Spagna e sulla Barcaccia',
17 'skip_download': True,
21 def _real_extract(self
, url
):
22 video_id
= self
._match
_id
(url
)
24 webpage
= self
._download
_webpage
(url
, video_id
)
26 stream_url
= self
._search
_regex
(
27 r
'(?:url|source)\s*:\s*(["\'])(?P
<url
>(?
:https?
:)?
//.+?\
.m3u8
.*?
)\
1', webpage,
28 'stream url
', group='url
')
30 title = self._og_search_title(webpage)
31 description = self._og_search_description(webpage)
38 'description
': description,