https://github.com/natlee/yande-and-konachan-to-eagle
Streamline fetching and managing images from websites, using Eagle Wrapper for seamless integration with Eagle image management software.
https://github.com/natlee/yande-and-konachan-to-eagle
image-crawler konachan python wrapper-api yandere
Last synced: 2 months ago
JSON representation
Streamline fetching and managing images from websites, using Eagle Wrapper for seamless integration with Eagle image management software.
- Host: GitHub
- URL: https://github.com/natlee/yande-and-konachan-to-eagle
- Owner: NatLee
- Created: 2023-04-26T21:45:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-27T13:12:32.000Z (about 2 years ago)
- Last Synced: 2025-01-21T20:48:43.338Z (4 months ago)
- Topics: image-crawler, konachan, python, wrapper-api, yandere
- Language: Python
- Homepage:
- Size: 55.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.TW.md
Awesome Lists containing this project
README
# Yande and Konachan to Eagle with Tags
[EN](./README.md) | [TW](./README.TW.md)

## 介紹
這個 repo 是一個圖片抓取和使用 [Eagle](https://eagle.cool/) 進行標籤管理的範例
內容會使用到另一個以 Python 開發的 Wrapper [Eagle-Wapper](https://github.com/NatLee/Eagle-Wrapper) 來實作
執行步驟是從指定網站(`yande.re` 或 `konachan.com`)拿到圖片的URL及標籤,再將它們推送到 Eagle 中進行儲存
## 使用方法
首先,你必須複製一份 `./map.example.yaml` 到 `./map.yaml`
內容是網站上檔案名稱的標籤對應表,並且你可以自由的進行修改他們的對應
> 這邊要注意上面的名稱不一定能對到所有的標籤,請自行查詢後增加
再來,安裝所需套件,內容包含必要的 `eaglewrapper`
```bash
pip install -r requirements
```接著再使用 python 執行 main.py
```bash
python main.py
```你可以使用參數來指定設定檔位置、映射文件及特定網站,詳細可以使用`python main.py --help`查看
```
usage: main.py [-h] [--config_path CONFIG_PATH] [--yaml_path YAML_PATH] [--target {yande,konachan}]Yande and Konachan to Eagle
optional arguments:
-h, --help show this help message and exit
--config_path CONFIG_PATH
Path to the config file
--yaml_path YAML_PATH
Path to the YAML file
--target {yande,konachan}
Target site for image crawling
```## 範例
抓取的圖片就像下方圖片一樣

它包含圖片的名稱、標籤以及URL,要注意的是因爲 Eagle 對於每張圖都有獨立 ID ,所以存圖的速度會較慢
大量圖片送進 Eagle 時會需要花多點時間等待
## Contributor