Improve return value of siteHandler()
This commit is contained in:
parent
2655022746
commit
495f1313a2
1 changed files with 3 additions and 4 deletions
7
cah.py
7
cah.py
|
@ -23,12 +23,11 @@ def siteHandler(p = 15):
|
||||||
if "files.explosm.net/comics" in img.get('src'):
|
if "files.explosm.net/comics" in img.get('src'):
|
||||||
fileDownloader("http:" + img.get('src'))
|
fileDownloader("http:" + img.get('src'))
|
||||||
for ne in suppe.find_all("a", class_="next-comic"):
|
for ne in suppe.find_all("a", class_="next-comic"):
|
||||||
return(ne.get('href'))
|
return(ne.get('href').split('/')[2])
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
output = "//15"
|
output = "15"
|
||||||
while not '#' in output:
|
while not '#' in output:
|
||||||
p = output.split('/')[2]
|
output = siteHandler(output)
|
||||||
output = siteHandler(p)
|
|
||||||
print("KTHXBAI")
|
print("KTHXBAI")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue