Skip to main content

Download only one image from web

Project description

i-need-an-image

Download only one image from web

确保可以从互联网上获取一张符合条件图片。可以指定图片的以下特征:

  • 关键词或一句话里的某个关键词
  • 图片的版式:横板、竖版、方形

我的关注点是尽可能地提高获取图片的成功率,可以通过不同细粒度的重试来达到这一目标:

  1. 请求图片实际地址失败时进行重试。
  2. 对同一搜索页面的不同图片进行请求尝试。
  3. 尝试不同的来源网站(必应、百度、谷歌)。

架构愿景:

  1. 希望可以像Scrapy的流水线一样,不同来源的下载器可随意插拔和扩展。
  2. 入口点只有一个give_me()函数。

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

i-need-an-image-0.3.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

i_need_an_image-0.3.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file i-need-an-image-0.3.1.tar.gz.

File metadata

  • Download URL: i-need-an-image-0.3.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for i-need-an-image-0.3.1.tar.gz
Algorithm Hash digest
SHA256 2430e96f418990a8e5a8eda3aae416a35482258ecd4a6505fb4b621fb2dccbf7
MD5 e35e4c918913338d511cb82b284270ad
BLAKE2b-256 8ba597668cbb4fcf77ab92e10354790b50e202da91dd2a17bcda302ae2d4200a

See more details on using hashes here.

File details

Details for the file i_need_an_image-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: i_need_an_image-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for i_need_an_image-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 902ececc8ed6dee9c7b129eeb54cad0c71dc059716b32544f1677b11e4e922b9
MD5 305e7efef02737c171e69423c79c41c0
BLAKE2b-256 2d3dfe93ea3bac7d937ce2ef1d5119c46c513f489c725ea5dba430ca5cf830fc

See more details on using hashes here.

Supported by

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