Skip to main content

This is a package for searching for pictures on Baidu with keywords.

Project description

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,代表每张图爬取的时间
  • word: '林俊杰',抓取的关键词
  • spider_page_num: 需要抓取数据页数 总抓取图片数量为 页数x60
  • start_page: 起始页数

Examples

crawler.start('林俊杰', 1, 1) crawler.start('韩国美女', 2, 1) crawler.start('红绿灯', 2, 1)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for BaiduImageSpider, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size BaiduImageSpider-0.0.2.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page