Skip to content

Commit

Permalink
Found a page that has lowercase "archive". Adding an additional check…
Browse files Browse the repository at this point in the history
… on this
  • Loading branch information
hasteur committed Jun 13, 2015
1 parent 8a78e80 commit 846d23d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion evaluate_okazu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 846d23d

Please sign in to comment.