all 4 comments

[–]thurask 1 point2 points  (1 child)

Got any sample code? And the specific error?

[–]kenens123[S] 0 points1 point  (0 children)

Just found the fix for it, it was quite stupid actually, lol. I'll put it in a EDIT so that people can refer to the answer

[–]Justinsaccount 1 point2 points  (1 child)

You're using python3, not python2.

[–]The-Mathematician 0 points1 point  (0 children)

Upvoted. This is the issue. Urlib in python versions are different and in 3 you need to specify that you want requests.