Hi all! I am new to python and scrapy and hence am getting some basic doubts(please spare my ignorance about some fundamentals,which i m willing to learn :D).
Right now I am writing some spiders and implementing them using scrapy-ctl.py from the command line by typing:
C:\Python26\dmoz>python scrapy-ctl.py crawl spider
But I do not want two separate python codes and a command line to implement this.I want to somehow define a spider and make it crawl urls by writing and running a single python code.I could notice that in the file scrapy-ctl.py, 'execute' of type function is imported,but i am clueless as to how this function can be defined in the code containing spider.Could someone explain me how to do this, if it is possible because it greatly reduces the work.
Thanks in advance!!