From 940e1a94d4859d52dfdd06eeb6d9be8d3f5e36b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E6=99=AF?= Date: Mon, 29 Dec 2014 18:43:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=B4=E6=9D=A5=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=20=E5=9C=9F=E8=B1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/you_get/common.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/you_get/common.py b/src/you_get/common.py index 644542bd..53a371a9 100755 --- a/src/you_get/common.py +++ b/src/you_get/common.py @@ -20,6 +20,7 @@ extractor_proxy = None cookies_txt = None dry_infos = {} +''' fake_headers = { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Charset': 'UTF-8,*;q=0.5', @@ -28,6 +29,18 @@ fake_headers = { 'RA-Sid': '6FC1B019-20140902-070431-9ec808-4213d6', 'RA-Ver': '2.8.6', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0' +}''' + +fake_headers = { + 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', + 'Accept-Encoding': 'gzip, deflate, sdch', + 'Accept-Language': 'zh-CN,zh;q=0.8,en;q=0.6,zh-TW;q=0.4,ja;q=0.2', + 'Cache-Control': 'max-age=0', + 'Connection': 'keep-alive', + 'DNT': '1', + 'RA-Sid': '6FC1B019-20140902-070431-9ec808-4213d6', + 'RA-Ver': '2.8.6', + 'User-Agent': 'Mozilla/5.0 (Linux; Android 4.1.1; Nexus 7 Build/JRO03D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Safari/535.19' } if sys.stdout.isatty():