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

doesn't work for me on 3.9 #14

Open
hzied opened this issue Dec 17, 2020 · 3 comments
Open

doesn't work for me on 3.9 #14

hzied opened this issue Dec 17, 2020 · 3 comments

Comments

@hzied
Copy link

hzied commented Dec 17, 2020

Crawling http://pastebin.com Press ctrl+c to save file to log.txt
Traceback (most recent call last):
File "C:\Users\zied_\Desktop\pwnbin-master\pwnbin.py", line 27, in main
root_html = BeautifulSoup(fetch_page(root_url), 'html.parser')
File "C:\Users\zied_\Desktop\pwnbin-master\pwnbin.py", line 131, in fetch_page
response = urllib.request.urlopen(page)
AttributeError: module 'urllib' has no attribute 'request'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\zied_\Desktop\pwnbin-master\pwnbin.py", line 187, in
main(sys.argv[1:])
File "C:\Users\zied_\Desktop\pwnbin-master\pwnbin.py", line 77, in main
except urllib.error.HTTPError as err:
AttributeError: module 'urllib' has no attribute 'error'

@gstone787
Copy link

Crawling http://pastebin.com Press ctrl+c to save file to log.txt
Traceback (most recent call last):
File "C:\Users\zied_\Desktop\pwnbin-master\pwnbin.py", line 27, in main
root_html = BeautifulSoup(fetch_page(root_url), 'html.parser')
File "C:\Users\zied_\Desktop\pwnbin-master\pwnbin.py", line 131, in fetch_page
response = urllib.request.urlopen(page)
AttributeError: module 'urllib' has no attribute 'request'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\zied_\Desktop\pwnbin-master\pwnbin.py", line 187, in
main(sys.argv[1:])
File "C:\Users\zied_\Desktop\pwnbin-master\pwnbin.py", line 77, in main
except urllib.error.HTTPError as err:
AttributeError: module 'urllib' has no attribute 'error'

Same here

@kalistamp
Copy link

me as well

@kegearda
Copy link

I have solved that by changing the import from urllib to urllib.request and urllib.error
but now i get this error

Crawling http://pastebin.com Press ctrl+c to save file to log.txt Traceback (most recent call last): File "/home/kali/pwnbin/pwnbin.py", line 188, in <module> main(sys.argv[1:]) File "/home/kali/pwnbin/pwnbin.py", line 31, in main for paste in find_new_pastes(root_html): File "/home/kali/pwnbin/pwnbin.py", line 115, in find_new_pastes for li in ul.findChildren(): AttributeError: 'NoneType' object has no attribute 'findChildren'

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

4 participants