Attempts to scrape more data

This commit is contained in:
Pieter Vander Vennet 2024-04-24 00:58:22 +02:00
parent 5bebcf3825
commit 73db05f545
2 changed files with 54 additions and 14 deletions

View file

@ -176,7 +176,9 @@ export default class ScriptUtils {
const requestPromise = new Promise((resolve, reject) => {
try {
headers = headers ?? {}
headers.accept ??= "application/json"
if(!headers.Accept){
headers.accept ??= "application/json"
}
console.log(" > ScriptUtils.Download(", url, ")")
const urlObj = new URL(url)
const request = https.get(