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:
parent
c976b94e89
commit
18e0e03cb0
4
zenit.py
4
zenit.py
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue