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

Torbot breaks for non onion site #64

Closed
agrepravin opened this issue Feb 8, 2018 · 6 comments
Closed

Torbot breaks for non onion site #64

agrepravin opened this issue Feb 8, 2018 · 6 comments

Comments

@agrepravin
Copy link
Contributor

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'

@PSNAppz
Copy link
Member

PSNAppz commented Feb 8, 2018

python3 torBot.py -u https://www.google.com
Try this

@PSNAppz PSNAppz added the Fixed label Feb 8, 2018
@PSNAppz PSNAppz closed this as completed Feb 8, 2018
@agrepravin
Copy link
Contributor Author

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

@PSNAppz
Copy link
Member

PSNAppz commented Feb 8, 2018

Yea if you like to find a solution for that you can reopen this issue and start working on a fix

@agrepravin
Copy link
Contributor Author

yeah will try to workout something for this

@PSNAppz PSNAppz reopened this Feb 8, 2018
@PSNAppz
Copy link
Member

PSNAppz commented Feb 8, 2018

Great !

@PSNAppz PSNAppz added Bug and removed Fixed labels Feb 8, 2018
@PSNAppz
Copy link
Member

PSNAppz commented Feb 12, 2018

Fixed

@PSNAppz PSNAppz added the Fixed label Feb 12, 2018
@PSNAppz PSNAppz closed this as completed Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants