Spider for downloading images from autohome.
- (Optional) Create a virtual environment for Python:
$ virtualenv -p python3 spider-env
$ source spider-env/bin/activate
- Install required Python packages:
$ pip3 install -r requirements.txt
-
Modify
misc/config,py
to custom your configuration. -
Run script and enjoy!
$ scrapy crawl autohome -L "INFO"
- images will be download to
{IMAGE_ROOT}/{BRAND_ID}/{FCT_ID}/{SERIES_ID}/{SPEC_ID}/{IMAGE_TYPE}/{IMAGE_ID}.jpg