]> git.phdru.name Git - bookmarks_db.git/commitdiff
I saw a number of sites that forbid "Mozilla compatible".
authorOleg Broytman <phd@phdru.name>
Tue, 18 Dec 2007 17:58:37 +0000 (17:58 +0000)
committerOleg Broytman <phd@phdru.name>
Tue, 18 Dec 2007 17:58:37 +0000 (17:58 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@115 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

Robots/bkmk_rsimple.py

index 50db38843d0fa7cee6e4af5ed48ea51aee69861b..57006da577ccf581317e80e2e2c94dd6a082fd7c 100644 (file)
@@ -44,8 +44,7 @@ class MyURLopener(urllib.URLopener):
 
 urllib._urlopener = MyURLopener()
 
-# Some sites allow only Mozilla-compatible browsers; way to stop robots?
-server_version = "Mozilla/3.0 (compatible; Python-urllib/%s)" % urllib.__version__
+server_version = "bookmarks_db (Python-urllib/%s)" % urllib.__version__
 urllib._urlopener.addheaders[0] = ('User-agent', server_version)