Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.21 KB

README.md

File metadata and controls

41 lines (33 loc) · 1.21 KB

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

or install from source code:

git clone https://github.com/fuweifu-vtoo/BaiduImageSpider.git
cd BaiduImageSpider
python setup.py install

Examples

crawler.start('林俊杰', 1, 1)

crawler.start('韩国美女', 2, 1)

crawler.start('hamburger', 2, 1)

THANKS

BaiduImageSpider