SyntaxFix
Write A Post
Hire A Developer
Questions
In Python 3, urllib2 was replaced by two in-built modules named urllib.request and urllib.error
urllib2
urllib.request
urllib.error
Adapted from source
So replace this:
import urllib2
With this:
import urllib.request as urllib2