Skip to content
Nat Lee

Keyboard shortcuts

Turn these off if they get in the way of a screen reader or voice control. The setting is saved in this browser.

1
Home
2
Work
3
Projects
4
About
5
Experience
/
Search projects
?
Show this panel

Utilities

Yande & Konachan to Eagle

Find images. Keep the tags. Send to Eagle.

A pipx-installable CLI using the sites’ JSON APIs and EagleWrapper. Preview with --dry-run, keep your own tags and skip items already imported.

Role
Creator & Maintainer
Period
2022 – 2026.11
Status
Completed
Categories
Libraries & tools
Stack
  • Python
  • JSON APIs
  • EagleWrapper
  • pipx
Yande & Konachan to Eagle, screenshot 1

Overview

A command-line importer for yande.re and konachan.com that sends image URLs and metadata to Eagle. The 2026 version uses JSON APIs, EagleWrapper and resumable state, with configurable searches, item limits, folders and a dry-run preview.

What it's good for

Collectors end up with a library already tagged in their own words, and a search like 'beach rating:s' keeps it safe to open at work. It is also the worked example for EagleWrapper: a complete, small downloader to copy when feeding Eagle from some other site.

Diagrams

Main paths only. The edge cases stayed in the code.

Add rating:s to the search and it's safe to open at work.

Point at a box to see what it connects to.

  1. Load config and tag map(Both made on the first run) → Given a --search?
  2. Given a --search? → no: Ask for posts after last ID → yes: Run the site's own search
  3. Ask for posts after last ID(Oldest first, from config.ini) → Take the next post
  4. Run the site's own search(Newest first, any site syntax) → Take the next post
  5. Take the next post(Pages of 100, a second apart) → Already in imported.txt?
  6. Already in imported.txt? → no: Swap site tags for yours → yes, skip: Save the last post ID
  7. Swap site tags for yours(Unmapped tags are left out) → Hand the image URL to Eagle
  8. Hand the image URL to Eagle(Eagle does the heavy lifting) → Did Eagle accept it?
  9. Did Eagle accept it? → yes: Add it to imported.txt → no: Note it as refused
  10. Add it to imported.txt(So it never lands twice) → Save the last post ID
  11. Note it as refused(Retry later with --search id:) → Save the last post ID
  12. Save the last post ID(Plain runs, after every post) → More posts to go?
  13. More posts to go?(--limit can stop it early) → yes: Take the next post → no: Print the summary
  14. Print the summary(Refused posts listed last)

Features

  • JSON-API searches with item limits
  • Custom tags and destination folders
  • Dry-run preview and duplicate skipping
  • Resumable progress and pipx installation

What I learned

  • Reading the JSON API, 100 posts per request, replaced loading one web page per post ID: much faster, and much lighter on the site.
  • In November 2026 konachan.com's Cloudflare check turned the script away; it now says so in one line and does not try to get around it.
  • The 2023 version dropped posts Eagle refused without a word; now they are listed at the end, ready to retry with --search id:.
  • Spin-off · Infortrend
    Libraries & toolsVision & imaging7070 stars on GitHub

    Blur Generator

    Makes perfectly good images worse on purpose: motion, lens, Gaussian and depth-aware blur, for training models that have to cope with bad photos.

    2021Completed
  • Libraries & toolsVision & imaging2626 stars on GitHub

    HEIC2PNG

    Turns iPhone HEIC photos into PNG from the CLI, a shell pipe or Python. A small tool for a small, recurring annoyance.

    2022Completed
  • Spin-off · Infortrend
    Libraries & toolsVision & imaging7676 stars on GitHub

    Batch Crop Images

    Draw a crop box once and it is applied to a whole folder of similar images. Written because I refused to crop them one by one, and apparently other people refused too.

    2019Completed