How To Import A Variable Of My Spider Class From My Pipelines.py File?
I found an interesting scraper on github. https://github.com/apetz/email-scraper The spider scrapes email from a website. This scraper need to be called by command line with a webs
Solution 1:
if you wanna import from currently directory module you can use dot .
So you can try :
from .spiders.thorough_spiderimportThoroughSpider
it's should be working
Solution 2:
Try
from scraper.spidersimport thorough_spider
or replace 'scraper' with the name of your project
Post a Comment for "How To Import A Variable Of My Spider Class From My Pipelines.py File?"