Created
July 15, 2013 14:44
-
-
Save paulswartz/6000514 to your computer and use it in GitHub Desktop.
run all scrapy spiders
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
pushd `dirname $0`/pluckr > /dev/null | |
OUTPUT_DIR=$1 | |
for spider in `scrapy list` | |
do | |
echo Scraping $spider... | |
rm -r $spider.jl | |
scrapy crawl $spider --output=$spider.jl --loglevel=INFO | |
mv $spider.jl "$OUTPUT_DIR" | |
done | |
popd > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment