From 2b4fe58dd936dcdf8f100c59a29fec9c5cdc2534 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 15 Feb 2017 18:03:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86url=E9=87=8D?= =?UTF-8?q?=E5=AE=9A=E5=90=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/you_get/extractors/qq.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/you_get/extractors/qq.py b/src/you_get/extractors/qq.py index 75f6997c..1a421c8e 100644 --- a/src/you_get/extractors/qq.py +++ b/src/you_get/extractors/qq.py @@ -223,8 +223,7 @@ def qq_download(url, output_dir='.', merge=True, info_only=False, **kwargs): if 'v.qq.com/page' in url: # for URLs like this: # http://v.qq.com/page/k/9/7/k0194pwgw97.html - content = get_html(url) - url = match1(content,r'window\.location\.href="(.*?)"') + url = get_location(url) if 'kuaibao.qq.com' in url or re.match(r'http://daxue.qq.com/content/content/id/\d+', url): content = get_html(url)