From 134cb76fd9939bf26642c893415b171d7552d82d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 23 Sep 2007 20:01:00 +0000 Subject: [PATCH] at least be right about the platform, linux --- scrapeit/google.py | 2 +- scrapeit/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scrapeit/google.py b/scrapeit/google.py index 7af65b7..6f7d491 100644 --- a/scrapeit/google.py +++ b/scrapeit/google.py @@ -27,7 +27,7 @@ from utils import read_url __version__ = '1.0.2' # Default headers for HTTP requests. -DEFAULT_HEADERS = {'User-Agent': 'Mozilla/4.0 (compatible; MSIE 5.5)'} +DEFAULT_HEADERS = {'User-Agent': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty)'} # Default maximum number of results. DEFAULT_MAX_RESULTS = 10 diff --git a/scrapeit/utils.py b/scrapeit/utils.py index c4c0f16..508442a 100644 --- a/scrapeit/utils.py +++ b/scrapeit/utils.py @@ -14,7 +14,7 @@ import djangohtml # Default headers for HTTP requests. -DEFAULT_HEADERS = {'User-Agent': 'Mozilla/4.0 (compatible; MSIE 5.5)'} +DEFAULT_HEADERS = {'User-Agent': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty)'} # -------------------------------------------------------------------- # Functions