From fee0bcb333e61287427e0c2211d528deb5efe3a6 Mon Sep 17 00:00:00 2001 From: PHPPlay <416539300@qq.com> Date: Mon, 11 Apr 2016 23:21:37 +0800 Subject: [PATCH 1/2] Update option.py --- lib/core/option.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/option.py b/lib/core/option.py index 00317cf48f1..c57d92fedb1 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1398,7 +1398,7 @@ def _defaultHTTPUserAgent(): @rtype: C{str} """ - return "%s (%s)" % (VERSION_STRING, SITE) + return "Googlebot/2.1 (+http://www.google.com/bot.html)" # Firefox 3 running on Ubuntu 9.04 updated at April 2009 #return "Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.0.9) Gecko/2009042113 Ubuntu/9.04 (jaunty) Firefox/3.0.9" From 2481f6f11ee4d511271a2deb6f0572e3c2d54b3f Mon Sep 17 00:00:00 2001 From: PHPPlay <416539300@qq.com> Date: Mon, 11 Apr 2016 23:25:59 +0800 Subject: [PATCH 2/2] Update option.py --- lib/core/option.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/option.py b/lib/core/option.py index c57d92fedb1..39c8b9b534e 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1398,7 +1398,7 @@ def _defaultHTTPUserAgent(): @rtype: C{str} """ - return "Googlebot/2.1 (+http://www.google.com/bot.html)" + return "Baiduspider+(+http://www.baidu.com/search/spider.htm)" # Firefox 3 running on Ubuntu 9.04 updated at April 2009 #return "Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.0.9) Gecko/2009042113 Ubuntu/9.04 (jaunty) Firefox/3.0.9"