mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 11:24:02 +03:00
Add iQilu support
This commit is contained in:
parent
b5112da1b2
commit
0fc9e207a3
@ -47,6 +47,7 @@ Fork me on GitHub: <https://github.com/soimort/you-get>
|
|||||||
* Google Drive <http://docs.google.com>
|
* Google Drive <http://docs.google.com>
|
||||||
* ifeng (凤凰视频) <http://v.ifeng.com>
|
* ifeng (凤凰视频) <http://v.ifeng.com>
|
||||||
* iQIYI (爱奇艺) <http://www.iqiyi.com>
|
* iQIYI (爱奇艺) <http://www.iqiyi.com>
|
||||||
|
* iQilu (齐鲁网, 山东网络台) <http://v.iqilu.com>
|
||||||
* Joy.cn (激动网) <http://www.joy.cn>
|
* Joy.cn (激动网) <http://www.joy.cn>
|
||||||
* Khan Academy <http://www.khanacademy.org>
|
* Khan Academy <http://www.khanacademy.org>
|
||||||
* Ku6 (酷6网) <http://www.ku6.com>
|
* Ku6 (酷6网) <http://www.ku6.com>
|
||||||
|
@ -940,7 +940,7 @@ def script_main(script_name, download, download_playlist = None):
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
def url_to_module(url):
|
def url_to_module(url):
|
||||||
from .extractors import netease, w56, acfun, baidu, baomihua, bilibili, blip, catfun, cntv, cbs, coursera, dailymotion, dongting, douban, douyutv, ehow, facebook, freesound, funshion, google, sina, ifeng, alive, instagram, iqiyi, joy, jpopsuki, khan, ku6, kugou, kuwo, letv, lizhi, magisto, metacafe, miaopai, miomio, mixcloud, mtv81, nicovideo, pptv, qianmo, qq, sohu, songtaste, soundcloud, ted, theplatform, tudou, tucao, tumblr, twitter, vid48, videobam, vidto, vimeo, vine, vk, xiami, yinyuetai, youku, youtube, zhanqi
|
from .extractors import netease, w56, acfun, baidu, baomihua, bilibili, blip, catfun, cntv, cbs, coursera, dailymotion, dongting, douban, douyutv, ehow, facebook, freesound, funshion, google, sina, ifeng, alive, instagram, iqilu, iqiyi, joy, jpopsuki, khan, ku6, kugou, kuwo, letv, lizhi, magisto, metacafe, miaopai, miomio, mixcloud, mtv81, nicovideo, pptv, qianmo, qq, sohu, songtaste, soundcloud, ted, theplatform, tudou, tucao, tumblr, twitter, vid48, videobam, vidto, vimeo, vine, vk, xiami, yinyuetai, youku, youtube, zhanqi
|
||||||
|
|
||||||
video_host = r1(r'https?://([^/]+)/', url)
|
video_host = r1(r'https?://([^/]+)/', url)
|
||||||
video_url = r1(r'https?://[^/]+(.*)', url)
|
video_url = r1(r'https?://[^/]+(.*)', url)
|
||||||
@ -977,6 +977,7 @@ def url_to_module(url):
|
|||||||
'ifeng': ifeng,
|
'ifeng': ifeng,
|
||||||
'in': alive,
|
'in': alive,
|
||||||
'instagram': instagram,
|
'instagram': instagram,
|
||||||
|
'iqilu': iqilu,
|
||||||
'iqiyi': iqiyi,
|
'iqiyi': iqiyi,
|
||||||
'joy': joy,
|
'joy': joy,
|
||||||
'jpopsuki': jpopsuki,
|
'jpopsuki': jpopsuki,
|
||||||
|
@ -19,6 +19,7 @@ from .funshion import *
|
|||||||
from .google import *
|
from .google import *
|
||||||
from .ifeng import *
|
from .ifeng import *
|
||||||
from .instagram import *
|
from .instagram import *
|
||||||
|
from .iqilu import *
|
||||||
from .iqiyi import *
|
from .iqiyi import *
|
||||||
from .joy import *
|
from .joy import *
|
||||||
from .jpopsuki import *
|
from .jpopsuki import *
|
||||||
|
26
src/you_get/extractors/iqilu.py
Normal file
26
src/you_get/extractors/iqilu.py
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
__all__ = ['iqilu_download']
|
||||||
|
|
||||||
|
from ..common import *
|
||||||
|
|
||||||
|
def iqilu_download(url, output_dir = '.', merge = False, info_only = False):
|
||||||
|
''''''
|
||||||
|
if re.match(r'http://v.iqilu.com/\w+', url):
|
||||||
|
|
||||||
|
#URL in webpage
|
||||||
|
html = get_content(url)
|
||||||
|
url = match1(html, r"<input type='hidden' id='playerId' url='(.+)'")
|
||||||
|
|
||||||
|
#grab title
|
||||||
|
title = match1(html, r'<meta name="description" content="(.*?)\"\W')
|
||||||
|
|
||||||
|
type_, ext, size = url_info(url)
|
||||||
|
print_info(site_info, title, type_, size)
|
||||||
|
if not info_only:
|
||||||
|
download_urls([url], title, ext, total_size=None, output_dir=output_dir, merge=merge)
|
||||||
|
|
||||||
|
|
||||||
|
site_info = "iQilu"
|
||||||
|
download = iqilu_download
|
||||||
|
download_playlist = playlist_not_supported('iqilu')
|
Loading…
x
Reference in New Issue
Block a user