Not parsing HTML with jsdom when using http module directly to save memory. Added loading ellipsis to release grid pages.

This commit is contained in:
DebaucheryLibrarian
2021-10-25 02:06:24 +02:00
parent 92f9ff4104
commit 6c5d4389fe
18 changed files with 144 additions and 15 deletions

View File

@@ -521,7 +521,11 @@ function extractAll(htmlValue, selector, options) {
async function request(method = 'get', urlValue, body, selector, headers, options, queryAll = false) {
const res = await (method === 'post'
? http.post(urlValue, body, { ...options, headers })
: http[method](urlValue, { ...options, headers }));
: http[method](urlValue, {
...options,
headers,
parse: true,
}));
if (res.ok) {
const item = queryAll