Also account for the See any missing results? link at the bottom of the page (in the case of no backlinks existing)

This commit is contained in:
Robert Miles 2020-11-15 04:19:38 +00:00
parent c976b94e89
commit 18e0e03cb0
1 changed files with 2 additions and 2 deletions

View File

@ -154,11 +154,11 @@ for line in response.splitlines():
if line.startswith("=>"):
stage=4
if stage==4:
if line.startswith("=>"):
if line.startswith("=>") and "See any missing results?" not in line:
parts = line.split(None,2)
links.append(parts[1])
else:
stage=3
stage=5
break
# stage 5 is to ignore the rest of the lines.
# if we're in stage 5 and somehow miss breaking out of the loop, nothing will happen