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.

Source Distribution

BaiduImageSpider-0.0.2.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file BaiduImageSpider-0.0.2.tar.gz.

File metadata

  • Download URL: BaiduImageSpider-0.0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for BaiduImageSpider-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5337676dc03d6c1d5769af6b231d0e9667a181c7f0dee5e2104f6f2491cebb65
MD5 29d78e340da2aca3b1c82035f2e3d0e1
BLAKE2b-256 d696e32d732986995cdeb6c19acae998cfb813adabcc83ee33cc3a8f87302476

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page