This commit is contained in:
zeek 2020-03-22 14:13:23 +08:00
rodič 2967957ab8
revize 63d48cab02
1 změnil soubory, kde provedl 4 přidání a 2 odebrání

Zobrazit soubor

@ -80,8 +80,10 @@ def filterlinks(links):
continue
if is_robot(url):
continue
if not ishttp:
url = url_root + url
if not ishttp and url.startswith("/"):
url = url_root + url
elif not ishttp:
url = url_root + '/' + url
tmplinks.append(url)
reslinks = list(set(tmplinks))
return reslinks