From c97dce9431df054638b490a6544983db897a4c1b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 12 Aug 2010 23:35:31 +0200 Subject: [PATCH] update useragent --- ox/net.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ox/net.py b/ox/net.py index 55c0aca..2e77540 100644 --- a/ox/net.py +++ b/ox/net.py @@ -12,7 +12,10 @@ from chardet.universaldetector import UniversalDetector # Default headers for HTTP requests. DEFAULT_HEADERS = { - 'User-Agent': 'Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.9.1.1) Gecko/20090716 Firefox/3.5', + 'User-Agent': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100723 Firefox/3.6.8', + 'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', + 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', + 'Accept-Language': 'en-us,en;q=0.5', 'Accept-Encoding': 'gzip' }