Download only one image from web
Project description
i-need-an-image
Download only one image from web
确保可以从互联网上获取一张符合条件图片。可以指定图片的以下特征:
- 关键词或一句话里的某个关键词
- 图片的版式:横板、竖版、方形
我的关注点是尽可能地提高获取图片的成功率,可以通过不同细粒度的重试来达到这一目标:
- 请求图片实际地址失败时进行重试。
- 对同一搜索页面的不同图片进行请求尝试。
- 尝试不同的来源网站(必应、百度、谷歌)。
架构愿景:
- 希望可以像
Scrapy
的流水线一样,不同来源的下载器可随意插拔和扩展。 - 入口点只有一个
give_me()
函数。
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
i-need-an-image-0.3.2.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for i_need_an_image-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bd9ff8f92496d861642d48bf75bd1d3890854f249bfa034f5ca86c5a614ade7 |
|
MD5 | c48f20414ab7fdbf6de9fb88ac76fdba |
|
BLAKE2b-256 | ccdbe8dd3e565d1214b813fc7aa89541370e5043701961e8eb46e9b0c315664b |