How to Solve NameError: name 'urljoin' is not defined -- six

Solution: Import the 'urljoin' module

# Add the following line to the top of your code
from six.moves.urllib.parse import urljoin

 

For more information:
six urljoin