Skip to main content

Gracefully download dataset from istockphoto

Project description

iStockPhoto Downloader

Gracefully download datasets from istock-photo.

Quickstart

  1. Download PyPI package

    pip install -U istockphoto
    
  2. Examples

    • Download images about panda phrase.
    import asyncio
    
    from istockphoto import Istock
    
    if __name__ == "__main__":
        istock = Istock.from_phrase("panda")
        asyncio.run(istock.mining())
    

    image

    • Similar mode
    import asyncio
    
    from istockphoto import Istock
    
    # phrase, image_id
    name2similar = [
        ("horse", "1280951754"),
        ("panda", "91781059"),
        ("cat", "1325997570")
    ]
    
    if __name__ == "__main__":
        for name, similar in name2similar:
            istock = Istock.from_phrase(name)
            istock.more_like_this(similar)
            asyncio.run(istock.mining())
    

    similar drawio

What's more

Home · QIN2DIM/istockphoto Wiki (github.com)

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

istockphoto-0.1.2.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

istockphoto-0.1.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file istockphoto-0.1.2.tar.gz.

File metadata

  • Download URL: istockphoto-0.1.2.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.0 CPython/3.10.11 Windows/10

File hashes

Hashes for istockphoto-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c112a8610f66ed040137194ff1ae5b56b9cebdb30dd4df00246f19b39f583bd3
MD5 2243f8a97afb617f6b0d70463b3c6b17
BLAKE2b-256 e6b5fa4b66054be05f687e47e2cfc37dcc4f972bf38a3038b84d5a8571c6bf0c

See more details on using hashes here.

File details

Details for the file istockphoto-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: istockphoto-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.0 CPython/3.10.11 Windows/10

File hashes

Hashes for istockphoto-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 10741f7e75c6ccfbd9a721c48e25f24fe3471a7c5d7781e768bde75e57008ae4
MD5 3b99c3fc30d813881b9dae636f0a0140
BLAKE2b-256 4038521ef6764f7e43d6fc93effcfad642351bb9c2c5dd3ceb1fbfe0ef23d502

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