diff --git a/README.md b/README.md index 2d976e568bbc1811e82c5da5798b25ec88ee9faa..122b711ea7610b02f6a4159314fb1709e5336459 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ Fork me on GitHub: * ifeng (凤凰视频) * iQIYI (爱奇艺) * Ku6 (酷6网) +* NetEase (网易) * PPTV * QQ (腾讯视频) * Sina (新浪视频) @@ -216,6 +217,7 @@ You-Get基于优酷下载脚本[iambus/youku-lixian](https://github.com/iambus/y * 凤凰视频 * 爱奇艺 * 酷6网 +* 网易 * PPTV * 腾讯视频 * 新浪视频 diff --git a/README.txt b/README.txt index 5c3a1da224c5c9274dfd640bcf1c43dff3a12ce8..4c7a3b528ac565e7ba5048fdf04fe99b24a57de9 100644 --- a/README.txt +++ b/README.txt @@ -28,6 +28,7 @@ Supported Sites (As of Now) * ifeng (凤凰视频) http://v.ifeng.com * iQIYI (爱奇艺) http://www.iqiyi.com * Ku6 (酷6网) http://www.ku6.com +* NetEase (网易) http://v.163.com * PPTV http://www.pptv.com * QQ (腾讯视频) http://v.qq.com * Sina (新浪视频) http://video.sina.com.cn diff --git a/you_get/downloader/__init__.py b/you_get/downloader/__init__.py index 02cf752407da960ece2e748dec68be33c8cf2e84..71d32301d60813715819522e1e51a7b58da8c2b8 100644 --- a/you_get/downloader/__init__.py +++ b/you_get/downloader/__init__.py @@ -8,6 +8,7 @@ from .googleplus import * from .ifeng import * from .iqiyi import * from .ku6 import * +from .netease import * from .pptv import * from .qq import * from .sina import * diff --git a/you_get/downloader/netease.py b/you_get/downloader/netease.py new file mode 100644 index 0000000000000000000000000000000000000000..cd1504fb141872668a0f8a17dcb0fa38686c801a --- /dev/null +++ b/you_get/downloader/netease.py @@ -0,0 +1,38 @@ +#!/usr/bin/env python + +__all__ = ['netease_download'] + +from ..common import * + +def netease_download(url, output_dir = '.', merge = True, info_only = False): + html = get_decoded_html(url) + + src = r1(r' sd_size: + url, size = hd_url, hd_size + else: + url, size = sd_url, sd_size + ext = 'flv' + + else: + title = r1('(.+)', html) + url = r1(r'(.+)-list.m3u8', src) + ".mp4" + _, _, size = url_info(url) + ext = 'mp4' + + 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 = "163.com" +download = netease_download +download_playlist = playlist_not_supported('netease') diff --git a/you_get/downloader/qq.py b/you_get/downloader/qq.py index cd0a53bc8bf94abda39e5ed57c1709f128fadc55..da56ea12f61836c105166b0e204cf32f844b9dac 100644 --- a/you_get/downloader/qq.py +++ b/you_get/downloader/qq.py @@ -30,6 +30,6 @@ def qq_download(url, output_dir = '.', merge = True, info_only = False): qq_download_by_id(id, title, output_dir = output_dir, merge = merge, info_only = info_only) -site_info = "V.QQ.com" +site_info = "QQ.com" download = qq_download download_playlist = playlist_not_supported('qq') diff --git a/you_get/main.py b/you_get/main.py index 48b4b20227a610d3a8f9edbb36cdab508c50b33e..0844e7ab8d4111a61d5e87bb4cc36ab8da2aadf3 100644 --- a/you_get/main.py +++ b/you_get/main.py @@ -18,6 +18,7 @@ def url_to_module(url): k = r1(r'([^.]+)', domain) downloads = { + '163': netease, '56': w56, 'acfun': acfun, 'bilibili': bilibili,