Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议检测前时规范下url格式 #21

Open
Meimdege opened this issue Jan 21, 2021 · 0 comments
Open

建议检测前时规范下url格式 #21

Meimdege opened this issue Jan 21, 2021 · 0 comments

Comments

@Meimdege
Copy link

建议检测前时规范下url格式,缺少前面的"http://"和后面的"/"就会报错。
我在scan_one函数下插入了下面这个

if "://" not in url:
  url = "http://" + url.strip()

url = url.rstrip("/") + "/"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant