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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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