An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# Yande and Konachan to Eagle with Tags

[EN](./README.md) | [TW](./README.TW.md)

![image](https://user-images.githubusercontent.com/10178964/234870235-f0dbe874-c1e8-4320-9c52-d6d920fa274d.png)

## 介紹

這個 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
```

## 範例

抓取的圖片就像下方圖片一樣

![](./docs/sample.png)

它包含圖片的名稱、標籤以及URL,要注意的是因爲 Eagle 對於每張圖都有獨立 ID ,所以存圖的速度會較慢

大量圖片送進 Eagle 時會需要花多點時間等待

## Contributor



Nat Lee
Nat Lee