This is a package for searching for pictures on Baidu with keywords.
code copy from BaiduImageSpider, But through this repository, you can download and install directly via pip.
pip install BaiduImageSpider
and
import BaiduImageSpider
crawler = BaiduImageSpider.Crawler(0.1)
crawler.start('林俊杰', 2, 1)
Args:
sleep_time
: 0.1, This represents the time each picture is crawled.word
: '林俊杰',keyword,Support Chinese and English, or any text that can be searched on Baiduspider_page_num
: Number of pages to be fetched Total number of images fetched Pages x60start_page
: Start page
or install from source code:
git clone https://github.com/fuweifu-vtoo/BaiduImageSpider.git
cd BaiduImageSpider
python setup.py install