From a471801b9943ac198ee21f5aae3eb761297d6f0f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 10 Jul 2009 11:06:10 +0200 Subject: [PATCH] switch to firefox 3.5 user agent string --- oxlib/net.py | 2 +- setup.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/oxlib/net.py b/oxlib/net.py index 3664ccf..22b3baf 100644 --- a/oxlib/net.py +++ b/oxlib/net.py @@ -11,7 +11,7 @@ from chardet.universaldetector import UniversalDetector # Default headers for HTTP requests. DEFAULT_HEADERS = { - 'User-Agent': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2a1pre) Gecko/20090529 Minefield/3.6a1pre', + 'User-Agent': 'Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5', 'Accept-Encoding': 'gzip' } diff --git a/setup.py b/setup.py index 4b5e00f..b1239c8 100644 --- a/setup.py +++ b/setup.py @@ -15,6 +15,7 @@ setup( packages=find_packages(), zip_safe=False, install_requires=[ + 'simplejson', 'chardet', ], keywords = [