From 80b3fb46d84c04e1215b39a2b0aedf8f55cfcc11 Mon Sep 17 00:00:00 2001 From: neobooru <50623835+neobooru@users.noreply.github.com> Date: Sun, 7 Feb 2021 01:09:37 +0100 Subject: [PATCH] Update danbooru scraper --- package.json | 2 +- src/engines/Danbooru.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 23fd76c..fd58655 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "neo-scraper", - "version": "0.4.0", + "version": "0.4.1", "description": "Scrape a booru-like post object from the DOM.", "main": "dist/index.js", "types": "dist/index.d.js", diff --git a/src/engines/Danbooru.ts b/src/engines/Danbooru.ts index 7b8d995..5dca812 100644 --- a/src/engines/Danbooru.ts +++ b/src/engines/Danbooru.ts @@ -57,7 +57,7 @@ export default class Danbooru implements ScrapeEngine { } // Set tags - const tagElements = Array.from(document.querySelectorAll("#tag-list > ul > li")).map((x) => x as HTMLLIElement); + const tagElements = Array.from(document.querySelectorAll("#tag-list ul li")).map((x) => x as HTMLLIElement); for (const tagElement of tagElements) { let tagName: string | undefined; const tagNameElement = tagElement.querySelector(".search-tag") as HTMLAnchorElement;