https://github.com/doarakko/flickr-image-downloader
Download image from flickr for machine learning
https://github.com/doarakko/flickr-image-downloader
dataset flickr flickr-api image-classification image-recognition machine-learning
Last synced: 12 months ago
JSON representation
Download image from flickr for machine learning
- Host: GitHub
- URL: https://github.com/doarakko/flickr-image-downloader
- Owner: Doarakko
- License: mit
- Created: 2020-11-25T15:52:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-01T16:48:07.000Z (over 1 year ago)
- Last Synced: 2025-02-02T11:36:43.491Z (about 1 year ago)
- Topics: dataset, flickr, flickr-api, image-classification, image-recognition, machine-learning
- Language: Python
- Homepage:
- Size: 89.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flickr image downloader
```text
data
├── cat.json
├── dog.json
├── images
│ ├── cat
│ │ ├── 33415747642.jpg
│ │ ├── 37204248186.jpg
│ │ ├── 38374394775.jpg
│ │ ├── 45591380462.jpg
│ │ └── 46106952034.jpg
│ └── dog
│ ├── 32996282558.jpg
│ ├── 33164281888.jpg
│ ├── 39731736542.jpg
│ ├── 40693090171.jpg
│ └── 45160323522.jpg
└── queries.txt
```
## Requirments
- Python 3.11
- flickr API Key
## Usage
### 1. Enter your API Key and number of images to download per query to `.env`
```bash
mv .env.sample .env
```
### 2. Enter search keywords in the `data/queries.txt` separated by line breaks
```bash
mv data/queries.txt.sample data/queries.txt
```
```txt
dog
cat
```
### 4. Install Python package
```bash
poetry install
```
### 5. Request to flickr and get image url
```bash
poetry run python get_image_url.py
```
### 6. Download image
```bash
poetry run python download_image.py
```
## Reference
- [flickr API](https://www.flickr.com/services/api/)