SyntaxFix
Write A Post
Hire A Developer
Questions
In python 3 urllib2 was merged into urllib. See also another Stack Overflow question and the urllib PEP 3108.
To make Python 2 code work in Python 3:
try: import urllib.request as urllib2 except ImportError: import urllib2