Skip to content

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

License

Notifications You must be signed in to change notification settings

fuweifu-vtoo/BaiduImageSpider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages