This repo is an example of image scraping and tag management using Eagle and Eagle-Wapper with Python.
The execution involves obtaining image URLs and tags from specified websites (yande.re
or konachan.com
), and then pushing them to Eagle for storage.
At first, you need to create a map by copying ./map.example.yaml
to ./map.yaml
.
You can modify the map with your own tags which will be parsed from the name.
Notice that the tags in the map are not all tags in the sites, please add more tags by yourself.
Then, install the required packages, including the necessary eaglewrapper
:
pip install -r requirements
Next, run main.py
using Python:
python main.py
You can use arguments to specify the configuration file location, mapping file, and specific website. For more details, use python main.py --help
to view:
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
The result is shown as below.
It includes name, tags and URL of the image in the source.
Nat Lee |