修改get_url
This commit is contained in:
parent
2967957ab8
commit
63d48cab02
@ -80,8 +80,10 @@ def filterlinks(links):
|
|||||||
continue
|
continue
|
||||||
if is_robot(url):
|
if is_robot(url):
|
||||||
continue
|
continue
|
||||||
if not ishttp:
|
if not ishttp and url.startswith("/"):
|
||||||
url = url_root + url
|
url = url_root + url
|
||||||
|
elif not ishttp:
|
||||||
|
url = url_root + '/' + url
|
||||||
tmplinks.append(url)
|
tmplinks.append(url)
|
||||||
reslinks = list(set(tmplinks))
|
reslinks = list(set(tmplinks))
|
||||||
return reslinks
|
return reslinks
|
||||||
|
Loading…
Reference in New Issue
Block a user