2020-04-02 19:12:11 -07:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from .common import InfoExtractor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-02 19:23:45 -07:00
|
|
|
class IxiguaIE(InfoExtractor):
|
2020-04-02 19:12:11 -07:00
|
|
|
|
2020-04-05 21:23:23 -07:00
|
|
|
_VALID_URL = r'https://www.ixigua.com/i(?P<id>\d+)/'
|
2020-04-02 19:12:11 -07:00
|
|
|
|
|
|
|
def _real_extract(self, url):
|
|
|
|
video_id = self._match_id(url)
|
|
|
|
|
|
|
|
webpage = self._download_webpage(
|
|
|
|
url, video_id
|
|
|
|
)
|
|
|
|
|
2020-04-05 21:46:19 -07:00
|
|
|
title = self._html_search_regex(r'<title>(\S+ - \S+)</title>', webpage, 'title')
|
2020-04-02 19:12:11 -07:00
|
|
|
|
|
|
|
download_url = self._html_search_regex(
|
|
|
|
|
|
|
|
r'(https://cdn\.acidcow\.com/pics/[0-9]+/video/\S+\.mp4)',
|
|
|
|
|
|
|
|
webpage, "download_url"
|
|
|
|
)
|
|
|
|
return {
|
2020-04-05 21:23:23 -07:00
|
|
|
|
2020-04-02 19:12:11 -07:00
|
|
|
'id': video_id,
|
|
|
|
'url': download_url,
|
|
|
|
'title': title
|
|
|
|
}
|