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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -