This commit is contained in:
Vito Van 2016-05-11 09:53:37 +08:00
parent 5b25857f39
commit 0f99c39ed9
4 changed files with 23 additions and 1 deletions

View File

@ -374,6 +374,7 @@ Use `--url`/`-u` to get a list of downloadable resource URLs extracted from the
| 花瓣 | <http://huaban.com/> | |✓| | | 花瓣 | <http://huaban.com/> | |✓| |
| 东方财富 | <http://video.eastmoney.com/> |✓| | | | 东方财富 | <http://video.eastmoney.com/> |✓| | |
| 第一财经 | <http://www.yicai.com/video/> |✓| | | | 第一财经 | <http://www.yicai.com/video/> |✓| | |
| 中金在线 | <http://video.cnfol.com/> |✓| | |
For all other sites not on the list, the universal extractor will take care of finding and downloading interesting resources from the page. For all other sites not on the list, the universal extractor will take care of finding and downloading interesting resources from the page.

View File

@ -88,7 +88,8 @@ SITES = {
'youtube' : 'youtube', 'youtube' : 'youtube',
'zhanqi' : 'zhanqi', 'zhanqi' : 'zhanqi',
'eastmoney' : 'eastmoney', 'eastmoney' : 'eastmoney',
'yicai' : 'yicai' 'yicai' : 'yicai',
'cnfol' : 'cnfol'
} }
import getopt import getopt

View File

@ -77,3 +77,4 @@ from .ted import *
from .khan import * from .khan import *
from .eastmoney import * from .eastmoney import *
from .yicai import * from .yicai import *
from .cnfol import *

View File

@ -0,0 +1,19 @@
#!/usr/bin/env python
__all__ = ['cnfol_download']
from ..common import *
def cnfol_download(url, output_dir = '.', merge = True, info_only = False, **kwargs):
if "video.cnfol.com" in url:
html = get_content(url)
title = match1(html, r'<h1>(.+)</h1>')
url = match1(html, r"{f:'([^']+)'")
_, ext, size = url_info(url)
print_info(site_info, title, ext, size)
if not info_only:
download_urls([url], title, ext, size, output_dir = output_dir, merge = merge)
site_info = "video.cnfol.com"
download = cnfol_download
download_playlist = playlist_not_supported('cnfol')