Permalink
Browse files

Found a page that has lowercase "archive". Adding an additional check…

… on this
  • Loading branch information...
hasteur committed Jun 13, 2015
1 parent 8a78e80 commit 846d23d9a63bab410fe00b6b4db353e0cdefd6f6
Showing with 3 additions and 1 deletion.
  1. +3 −1 evaluate_okazu.py
View
@@ -23,6 +23,9 @@ def evaluatePage(this_page):
elif "Archive" in page_title:
print "%s is an archived page, not changing" % page_title
return
elif "archive" in page_title:
print "%s is an archived page, not changing" % page_title
return
page_text = this_page.get()
matches = okazu_search.findall(page_text)
for match in matches:
@@ -43,7 +46,6 @@ def lookup_match(match):
else:
#Time to look up the replacement from the new site
req_string = 'http://okazu.yuricon.com/?b2w='+match
print req_string
r = requests.get(req_string)
if r.status_code == 200:
found_matches[compound_key] = r.url

0 comments on commit 846d23d

Please sign in to comment.