from urllib2 import build_opener, HTTPCookieProcessor
ModuleNotFoundError: No module named 'urllib2'
The urllib2 module has been split across several modules in Python 3 named urllib.request and urllib.error. The 2to3 tool will automatically adapt imports when converting your sources to Python 3.