semvec/pypi-packages huggingface dataset:
istockphoto 0.1.2
Gracefully download dataset from istockphoto
License: Apache-2.0
Requires Python: >=3.8,<4.0
Keywords: istockphoto,downloader,spider,istock

# iStockPhoto Downloader

Gracefully download datasets from istock-photo.

## Quickstart

1. **Download PyPI package**

   ```bash
   pip install -U istockphoto
   ```

2. **Examples**

   - Download images about `panda` phrase. 

   ```python
   import asyncio
   
   from istockphoto import Istock
   
   if __name__ == "__main__":
       istock = Istock.from_phrase("panda")
       asyncio.run(istock.mining())
   ```
   ![image](https://github.com/QIN2DIM/istockphoto/assets/62018067/d203bf76-613f-481f-9473-ef6794a78dba)


   - Similar mode
   
   ```python
   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](https://github.com/QIN2DIM/istockphoto/assets/62018067/60a76700-1ed5-44b4-8316-c1346e78d116)

   

## What's more

[Home · QIN2DIM/istockphoto Wiki (github.com)](https://github.com/QIN2DIM/istockphoto/wiki)