fuweifu-vtoo / BaiduImageSpider

This is a package for searching for pictures on Baidu with keywords. You can install via pip.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

This is a package for searching for pictures on Baidu with keywords. You can install via pip.

License:MIT License


Languages

Language:Python 100.0%