Categories
Python Code

Fix : Module Not Found

If you use Scrapy, and CrawlerProcess then Python may not search the path that is required for Scrapy to find its “items.py” file.

How do you fix this ‘ModuleNotFoundError‘ ?

Read on…

scrapy items.py module not found
items.py lcoation

As we can see, Scrapy framework has the items.py file in a directory above the spiders directoy

spider location

path append(Path = Project Name)
use path.append to add items.py to the Scrapy search path

Leave a Reply

Your email address will not be published. Required fields are marked *