]> git.phdru.name Git - bookmarks_db.git/blobdiff - Robots/bkmk_rsimple.py
Handle HTTP Redirect 307.
[bookmarks_db.git] / 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):