修改get_url
This commit is contained in:
parent
2967957ab8
commit
63d48cab02
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user