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

按照要求安装完成后如下报错 #5

Open
xu-xiang opened this issue Apr 20, 2016 · 1 comment
Open

按照要求安装完成后如下报错 #5

xu-xiang opened this issue Apr 20, 2016 · 1 comment

Comments

@xu-xiang
Copy link

[root@87a5585bcce3 weakfilescan]# python wyspider.py http://wuyun.org php

* scan http://wuyun.org start

Traceback (most recent call last):
File "wyspider.py", line 17, in
print json.dumps(start_wyspider(sys.argv[1]), indent=2)
File "/weakfilescan/controller.py", line 41, in start_wyspider
link_datas = GetAllLink(siteurl).start()
File "/weakfilescan/libs/GetAllLink.py", line 47, in start
response_obj = LinksParser(http_request_get(self.siteurl))
File "/weakfilescan/common.py", line 170, in init
self.baseurl = get_baseurl(self.url)
File "/weakfilescan/common.py", line 31, in get_baseurl
netloc = urlparse.urlparse(link).netloc
File "/usr/lib64/python2.7/urlparse.py", line 142, in urlparse
tuple = urlsplit(url, scheme, allow_fragments)
File "/usr/lib64/python2.7/urlparse.py", line 181, in urlsplit
i = url.find(':')
AttributeError: 'NoneType' object has no attribute 'find'

@xu-xiang
Copy link
Author

帮助问题错误导致。。。
python wyspider.py http://wuyun.org php

这边的http://去掉即可

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