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;