python - Continue the batch script commands when using scrapy crawl command in a batch file -


i using scrapy crawling information webpage. have written spider code works fine. have other python code files refine crawled data.

to put together, have batch file in first use "scrapy crawl" command, , after run python file refine crawled information.

the problem batch script stops @ end of "scrapy crawl" command, , not proceed executing lines after in batch file. how can solve problem?

contents of batch file:

cd "spiders_folder" scrapy crawl myspider -o outputdata.json -t json python refinedata.py  

the batch file logic handles calls other programs subroutines , returns there originating batch file after execution finished. afaicr exception rule if 1 batch file calls batch file. in case execution not handled subroutine given on other batch file.

unless use call call second batch file.

(i might mistaken, long ago me, please don't hit me hard if i'm wrong.)

if guess correct , reason trouble, because scrapy batch file itself. call this:

call scrapy crawl myspider -o outputdata.json -t json 

Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -