https://github.com/colorfulboard/python-image-downloader
image download script written by python
https://github.com/colorfulboard/python-image-downloader
Last synced: about 1 month ago
JSON representation
image download script written by python
- Host: GitHub
- URL: https://github.com/colorfulboard/python-image-downloader
- Owner: COLORFULBOARD
- License: mit
- Created: 2016-02-26T00:04:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-16T09:11:10.000Z (over 9 years ago)
- Last Synced: 2025-12-31T16:07:14.681Z (5 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-image-downloader
image download script written by python
## Run
```bash
python download_image.py default_config.ini
```
if no config file option, script read `./config.ini` file.
## Config File
```
[database]
# host : localhost
# port : 3306
db : image_test
user : root
password : 0000
# charset : utf8
[input]
table : image_tmp
# id_column : id
# url_column : image
[output]
path : ~/tmp/item_images/
# path_column : path
# limit_file_count: 3
[fetch]
# interval : 1
# block_time : 2:00-5:00
```
## Queueing database
if you make queue db, use MySQL compatibility database.
(like MySQL, MariaDB, Amazon Aurora)
```sql
CREATE TABLE `image_tmp` (
`id` INT(11) NOT NULL, # if need, specify AUTO_INCREMENT option
`image` VARCHAR(128) NOT NULL,
`path` VARCHAR(128) NULL,
PRIMARY KEY (`id`));
```
## License
[MIT](https://github.com/wasnot/python-image-downloader/blob/master/LICENSE)
## Author
[wasnot](https://github.com/wasnot)