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 ,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
: 需要抓取数据页数 总抓取图片数量为 页数x60start_page
: 起始页数
Examples
crawler.start('林俊杰', 1, 1) crawler.start('韩国美女', 2, 1) crawler.start('红绿灯', 2, 1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
BaiduImageSpider-0.0.1.tar.gz
(3.6 kB
view hashes)