How to Solve NameError: name 'InstaPy' is not defined -- instapy

Solution: Import the 'InstaPy' module

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

from instapy import InstaPy

 

For more information:
Python instapy InstaPy