Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions SpringCrawler/crawler.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ set NUM_PAGES=%~2
set DEPTH=%~3
set OUTPUT_DIR=%~4

if not exist venv (
python -m venv venv
)

call venv\Scripts\activate.bat
pip install --upgrade pip
pip install -r requirements.txt

set SCRAPY_CMND=scrapy crawl url -a seed_file=%SEED_FILE% -a num_pages=%NUM_PAGES%

if not "%DEPTH%"=="" (
Expand Down
8 changes: 0 additions & 8 deletions SpringCrawler/crawler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ NUM_PAGES=$2
DEPTH=$3
OUTPUT_DIR=$4

if [ ! -d "venv" ]; then
python3 -m venv venv
fi

source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

SCRAPY_CMND="scrapy crawl url -a seed_file=$SEED_FILE -a num_pages=$NUM_PAGES"

if [ -n "$DEPTH" ]; then
Expand Down