feat: add more domains
parent
eeee42c389
commit
832b3d286d
|
|
@ -7,12 +7,12 @@ Scrape a booru-like post object from the DOM.
|
||||||
| Engine | Sites | Features | Notes |
|
| Engine | Sites | Features | Notes |
|
||||||
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- | ------------------------------------------------------------- |
|
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- | ------------------------------------------------------------- |
|
||||||
| animepictures | anime-pictures.net | content, resolution, tags, tag_category | Rating is assumed to be safe. |
|
| animepictures | anime-pictures.net | content, resolution, tags, tag_category | Rating is assumed to be safe. |
|
||||||
| danbooru | danbooru.donmai.us, safebooru.donmai.us | content, rating, resolution, tags, tag_category, source, notes | |
|
| danbooru | danbooru.donmai.us, safebooru.donmai.us, sonohara.donmai.us, hijiribe.donmai.us, hypnohub.net | content, rating, resolution, tags, tag_category, source, notes | |
|
||||||
| e621 | e621.net, e926.net | content, rating, resolution, tags, tag_category, source | |
|
| e621 | e621.net, e926.net | content, rating, resolution, tags, tag_category, source | |
|
||||||
| furaffinity | www.furaffinity.net | content, rating, resolution, tags, tag_category | |
|
| furaffinity | www.furaffinity.net | content, rating, resolution, tags, tag_category | |
|
||||||
| gelbooru | safebooru.org, gelbooru.com, rule34.xxx, tbib.org, xbooru.com | content, rating, resolution, tags, tag_category, source, notes | Supported features might vary between hosts. |
|
| gelbooru | safebooru.org, gelbooru.com, rule34.xxx, tbib.org, xbooru.com, mspabooru.com | content, rating, resolution, tags, tag_category, source, notes | Supported features might vary between hosts. |
|
||||||
| inkbunny | inkbunny.net | content, rating, resolution, tags | |
|
| inkbunny | inkbunny.net | content, rating, resolution, tags | |
|
||||||
| moebooru | yande.re, konachan.com | content, rating, resolution, tags, tag_category, source, notes | |
|
| moebooru | yande.re, konachan.com, konachan.net, www.sakugabooru.com, img.genshiken-itb.org | content, rating, resolution, tags, tag_category, source, notes | |
|
||||||
| philomena | derpibooru.org, trixiebooru.org, ponybooru.org, furbooru.org, ponerpics.org, manebooru.art, twibooru.org | content, rating, resolution, tags, tag_category, source | |
|
| philomena | derpibooru.org, trixiebooru.org, ponybooru.org, furbooru.org, ponerpics.org, manebooru.art, twibooru.org | content, rating, resolution, tags, tag_category, source | |
|
||||||
| pixiv | pixiv.net, www.pixiv.net | content | |
|
| pixiv | pixiv.net, www.pixiv.net | content | |
|
||||||
| reddit | reddit.com, new.reddit.com, old.reddit.com | content | |
|
| reddit | reddit.com, new.reddit.com, old.reddit.com | content | |
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ export default class Danbooru extends ScrapeEngineBase {
|
||||||
name = "danbooru";
|
name = "danbooru";
|
||||||
features: ScrapeEngineFeature[] = ["content", "rating", "resolution", "tags", "tag_category", "source", "notes"];
|
features: ScrapeEngineFeature[] = ["content", "rating", "resolution", "tags", "tag_category", "source", "notes"];
|
||||||
notes = [];
|
notes = [];
|
||||||
supportedHosts = ["danbooru.donmai.us", "safebooru.donmai.us"];
|
supportedHosts = ["danbooru.donmai.us", "safebooru.donmai.us", "sonohara.donmai.us", "hijiribe.donmai.us", "hypnohub.net"];
|
||||||
|
|
||||||
scrapeDocument(document: Document): ScrapeResult {
|
scrapeDocument(document: Document): ScrapeResult {
|
||||||
const result = new ScrapeResult(this.name);
|
const result = new ScrapeResult(this.name);
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ export default class Gelbooru extends ScrapeEngineBase {
|
||||||
name = "gelbooru";
|
name = "gelbooru";
|
||||||
features: ScrapeEngineFeature[] = ["content", "rating", "resolution", "tags", "tag_category", "source", "notes"];
|
features: ScrapeEngineFeature[] = ["content", "rating", "resolution", "tags", "tag_category", "source", "notes"];
|
||||||
notes = ["Supported features might vary between hosts."];
|
notes = ["Supported features might vary between hosts."];
|
||||||
supportedHosts = ["safebooru.org", "gelbooru.com", "rule34.xxx", "tbib.org", "xbooru.com"];
|
supportedHosts = ["safebooru.org", "gelbooru.com", "rule34.xxx", "tbib.org", "xbooru.com", "mspabooru.com"];
|
||||||
|
|
||||||
private readonly classNameToCategoryMap: CategoryMap = {
|
private readonly classNameToCategoryMap: CategoryMap = {
|
||||||
"tag-type-copyright": "copyright",
|
"tag-type-copyright": "copyright",
|
||||||
|
|
@ -30,6 +30,7 @@ export default class Gelbooru extends ScrapeEngineBase {
|
||||||
case "rule34.xxx":
|
case "rule34.xxx":
|
||||||
case "tbib.org":
|
case "tbib.org":
|
||||||
case "xbooru.com":
|
case "xbooru.com":
|
||||||
|
case "mspabooru.com":
|
||||||
version = Version.v020;
|
version = Version.v020;
|
||||||
break;
|
break;
|
||||||
case "gelbooru.com":
|
case "gelbooru.com":
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ export default class Moebooru extends ScrapeEngineBase {
|
||||||
name = "moebooru";
|
name = "moebooru";
|
||||||
features: ScrapeEngineFeature[] = ["content", "rating", "resolution", "tags", "tag_category", "source", "notes"];
|
features: ScrapeEngineFeature[] = ["content", "rating", "resolution", "tags", "tag_category", "source", "notes"];
|
||||||
notes = [];
|
notes = [];
|
||||||
supportedHosts = ["yande.re", "konachan.com"];
|
supportedHosts = ["yande.re", "konachan.com", "konachan.net", "www.sakugabooru.com", "img.genshiken-itb.org"];
|
||||||
|
|
||||||
scrapeDocument(document: Document): ScrapeResult {
|
scrapeDocument(document: Document): ScrapeResult {
|
||||||
const result = new ScrapeResult(this.name);
|
const result = new ScrapeResult(this.name);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue