[GalleryDLInfo] gallery-dl downloaded metadata scraper - #2742
Open
spaceyuck wants to merge 2 commits into
Open
Conversation
…ta JSON produced by gallery-dl
Contributor
Author
|
OK, reworked some stuff, no more site-specific code paths or references. But as already said, it's only as generic as far as there is a consensus between implementations on their side. Some fields have a few different guesses of what they might be named, but it remains a bit of whack-a-mole. |
Contributor
|
I don't think including test and test data serves any purpose for end users. |
also added missed needed test data data
Contributor
Author
I have moved the tests and test data into a sub-folder for the scraper under a new top folder |
Maista6969
force-pushed
the
master
branch
2 times, most recently
from
July 9, 2026 18:16
acb310b to
cd51adb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scraper type(s)
Examples to test
Includes a test suite using example data based on a few different structures encountered in the wild
Short description
gallery-dl has a few interesting options (
--write-info-jsonand--write-metadata), that produce per gallery and per file JSON metadata files while downloading. This scraper implements processing these files.These could be very helpful, if the source is for whatever reason no longer scrapable with existing scrapers (cloudflare, API ban, content removed by uploader, ...).
There seems to be somewhat of a consensus on the structure, but there are a lot of site-specific differences, so it's once again a best effort approach, which may or may not work well for any of the hundreds of sites supported by gallery-dl.
closes #2240
This scraper includes unit tests and test data, right now these are placed right besides the scraper, I don't know if they should maybe go somewhere else.