/MzituSpider

:heart_eyes: A Spider use to easy download photos for mzitu.com.

Primary LanguagePython

MzituSpider

A Spider use to download photos for mzitu.com, support img set and category three ways.

Install

python3 environment, not test in python2.

git clone https://github.com/cauil/MzituSpider.git
cd MzituSpider
pip install -r requirements.txt

Usage

The file is download to dir './downloads/' default.

from spider import Spider
s = Spider()
  1. download a single img. just:
s.down_img('http://i.meizitu.net/2017/09/23b01.jpg')
  1. download a img set. ie: http://www.mzitu.com/103636. just:
s.down_img_set(103636)
  1. downlaod a category. just:
s.down_albums('http://www.mzitu.com/xinggan/')

if u want to download all the pagination of category, just:

s.down_albums('http://www.mzitu.com/xinggan/', True)