A simple web-scraper using the Bing Image Search API
Link your Bing Search API-Key
touch api.key && echo "<API_KEY>" > api.key
Make a folder inside the datasets folder for your subclass
cd datasets/ && mkdir <subclass_name>
Run the python script in terminal with the required arguments
python3 scraper.py -q "<relevant keywords>" -n <integer value> -o datasets/<subclass_name>
For help
python3 scraper.py -h
Arguments | Description |
---|---|
-h | help message |
-q | query |
-n | number of results |
-o | output directory |
Credits: Adrian Rosebrock ๐ฅณ