How to Solve NameError: name 'Request' is not defined -- urllib

Solution: Import the 'Request' module

To Solve the error, add the following line to the top of your code.

from urllib import Request

 

For more information:
Python urllib Request