[everia.club] Add support

- Unescape title and URL
- Add tags and categories metadata
    Lookup tag id with API instead of downloading tag page
- Add category extractor
- Add tests
- Rename EveriaExtractor to EveriaPostExtractor
- Fix EveriaPostExtractor example
- Lookup tags/categories by post id
- Add date extractor
- Remove leftover pages parameter
- Add error handling for invalid dates.
- Add filename numbering
    Parse date
- Rename extract() to images()
- Remove html import
- Fix search/date URLs with page number
- Fix tag/category search
- Fix post extractor
- Fix tag, category extractors
- Fix search extractor
- Only load first page once
- Fix date extractor
- Fix tests
- Clean up search extractor
This commit is contained in:
missionfloyd
2024-09-23 00:35:19 -06:00
committed by Mike Fährmann
parent 93adfbe935
commit d31a3b5da3
4 changed files with 150 additions and 0 deletions

37
test/results/everia.py Normal file
View File

@@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from gallery_dl.extractor import everia
__tests__ = (
{
"#url" : "https://everia.club/2024/09/23/mikacho-조미카-joapictures-someday/",
"#category" : ("", "everia", "post"),
"#class" : everia.EveriaPostExtractor,
"#archive" : False,
"#count" : 32,
"title" : "Mikacho 조미카, JOApictures Someday",
"post_category": "Korea",
"tags" : ["[JOApictures]", "Mikacho 조미카"]
},
{
"#url" : "https://everia.club/tag/yeon-woo-연우/",
"#category" : ("", "everia", "tag"),
"#class" : everia.EveriaTagExtractor,
},
{
"#url" : "https://everia.club/category/japan/",
"#category" : ("", "everia", "category"),
"#class" : everia.EveriaCategoryExtractor,
},
{
"#url" : "https://everia.club/?s=saika",
"#category" : ("", "everia", "search"),
"#class" : everia.EveriaSearchExtractor,
}
)