Update danbooru scraper

pull/5/head
neobooru 2021-02-07 01:09:37 +01:00
parent e1df85b44a
commit 80b3fb46d8
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -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;