-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
Torbot breaks for non onion site #64
Comments
|
we will need to alert user to use https or they haven't done we will need to prepend it before passing it to pagereader |
Yea if you like to find a solution for that you can reopen this issue and start working on a fix |
yeah will try to workout something for this |
Great ! |
Fixed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
usage:
python torBot.py -u www.google.com
Error:
Traceback (most recent call last):
File "torBot.py", line 188, in
main()
File "torBot.py", line 162, in main
html_content = pagereader.readPage(link)
File "/root/tor/TorEnv/TorBoT/modules/pagereader.py", line 9, in readPage
req = urllib.request.Request(site, None, headers)
File "/usr/lib/python3.5/urllib/request.py", line 269, in init
self.full_url = url
File "/usr/lib/python3.5/urllib/request.py", line 295, in full_url
self._parse()
File "/usr/lib/python3.5/urllib/request.py", line 324, in _parse
raise ValueError("unknown url type: %r" % self.full_url)
ValueError: unknown url type: 'www.google.com'
The text was updated successfully, but these errors were encountered: