Update danbooru scraper
parent
e1df85b44a
commit
80b3fb46d8
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "neo-scraper",
|
"name": "neo-scraper",
|
||||||
"version": "0.4.0",
|
"version": "0.4.1",
|
||||||
"description": "Scrape a booru-like post object from the DOM.",
|
"description": "Scrape a booru-like post object from the DOM.",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.js",
|
"types": "dist/index.d.js",
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ export default class Danbooru implements ScrapeEngine {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set tags
|
// 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) {
|
for (const tagElement of tagElements) {
|
||||||
let tagName: string | undefined;
|
let tagName: string | undefined;
|
||||||
const tagNameElement = tagElement.querySelector(".search-tag") as HTMLAnchorElement;
|
const tagNameElement = tagElement.querySelector(".search-tag") as HTMLAnchorElement;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue