BaiduImageSpider
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.
Usage
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 Baidu -
spider_page_num
: Number of pages to be fetched Total number of images fetched Pages x60 -
start_page
: Start page
Examples
crawler.start('hamburger', 2, 1)