1 from .common
import InfoExtractor
8 class AliExpressLiveIE(InfoExtractor
):
9 _VALID_URL
= r
'https?://live\.aliexpress\.com/live/(?P<id>\d+)'
11 'url': 'https://live.aliexpress.com/live/2800002704436634',
12 'md5': 'e729e25d47c5e557f2630eaf99b740a5',
14 'id': '2800002704436634',
16 'title': 'CASIMA7.22',
17 'thumbnail': r
're:https?://.*\.jpg',
18 'uploader': 'CASIMA Official Store',
19 'timestamp': 1500717600,
20 'upload_date': '20170722',
24 def _real_extract(self
, url
):
25 video_id
= self
._match
_id
(url
)
27 webpage
= self
._download
_webpage
(url
, video_id
)
29 data
= self
._parse
_json
(
31 r
'(?s)runParams\s*=\s*({.+?})\s*;?\s*var',
32 webpage
, 'runParams'),
37 formats
= self
._extract
_m
3u8_formats
(
38 data
['replyStreamUrl'], video_id
, 'mp4',
39 entry_protocol
='m3u8_native', m3u8_id
='hls')
44 'thumbnail': data
.get('coverUrl'),
46 data
, lambda x
: x
['followBar']['name'], str),
47 'timestamp': float_or_none(data
.get('startTimeLong'), scale
=1000),