]> git.phdru.name Git - bookmarks_db.git/commitdiff
Handle HTTP Redirect 307.
authorOleg Broytman <phd@phdru.name>
Fri, 21 Sep 2012 22:50:18 +0000 (22:50 +0000)
committerOleg Broytman <phd@phdru.name>
Fri, 21 Sep 2012 22:50:18 +0000 (22:50 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@361 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

Robots/bkmk_rsimple.py

index 6b61908b8377428df8dd87e987de7f960534f7f3..75ac27fc19699c740526647e6271b819de48484e 100644 (file)
@@ -1,6 +1,7 @@
 """Simple, strightforward robot
 
 This file is a part of Bookmarks database and Internet robot.
+
 """
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
@@ -25,7 +26,8 @@ from parse_html import parse_html
 class RedirectException(Exception):
    reloc_dict = {
       301: "perm.",
-      302: "temp.",
+      302: "temp2.",
+      307: "temp7.",
       "html": "html"
    }
    def __init__(self, errcode, newurl):