GithubHelp home page GithubHelp logo

ppbc-scraper's Introduction

PPBC**植物图像库爬虫

最近在做一个课设需要大量花卉植物的图片来做训练集,于是写了一个爬虫,从**植物图像库抓图。


使用前需要在**植物图像库上找到所需植物的种(Species),例如:

被子植物门 Angiospermae >> 白花丹科 Plumbaginaceae >> 白花丹属 Plumbago >> 白花丹 Plumbago zeylanica

找到白花丹种的网址如下 http://www.plantphoto.cn/sp/26094

网址末端可找到sp号26094,这个便是白花丹的唯一标识。


可获取多个sp号后一起爬取,具体设置在ppbc.py文件中可以找到。

scrapy自带缩略图功能,但不是等比例压缩,重写PicscrapyPipeline部分函数,在使用Pipeline爬图的同时用PIL等比例压缩,保存原图和压缩图,图片按编号顺序命名、按花卉名称分文件夹保存。


Scrapy版本: 1.5.0

Python版本:3.6.4

ppbc-scraper's People

Contributors

hamal-z avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.