python - Scrapy Import Method from another Spider -
so have scrapy project , i've written 2 spiders it. 1 scan whole web page, , 1 daily updates. there way can import method 1 scrapes whole web site 1 daily update? i'm not whole module import thing begin with.
this project structure looks like
/myproject __init__.py items.py piplines.py settings.py /spiders spidera.py spiderb.py __init__.py
i've tried
from myproject.spiders.spidera import themethod
to no avail.
try:
from spidera import themethod
Comments
Post a Comment