diff --git a/benchmark/index.ts b/benchmark/index.ts deleted file mode 100644 index 881cbdf..0000000 --- a/benchmark/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -import Wattpad from "../mod.ts"; - -const wp = new Wattpad(); - -const search = wp.search({ - query: "bendy x reader", -}); - -await search.update(0); - -await search.results[0].init(); - -console.log(search.results[0].name); - -/*await search.results[0].chapters[0].init(); - -console.log(search.results[0].chapters[0].text);*/ diff --git a/benchmark/main.py b/benchmark/main.py deleted file mode 100644 index 047ecff..0000000 --- a/benchmark/main.py +++ /dev/null @@ -1,10 +0,0 @@ -from wattpad_scraper import Wattpad -import os - -watt = Wattpad() - -books = watt.search_books("bendy x reader") - -print(books[0].title) -#print(books[0].chapters[0].content) -os.system("rm -rf temp_catch_delete_if_not_needed") \ No newline at end of file diff --git a/src/classes/Chapter.ts b/src/classes/Chapter.ts index 6424998..ec7d7aa 100644 --- a/src/classes/Chapter.ts +++ b/src/classes/Chapter.ts @@ -42,7 +42,7 @@ export default class Chapter { this.html = html; - // pseudo-parse html to markdown with regex + // "parse" html to markdown with regex this.text = html .replaceAll( //g,