Fixes
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -11,7 +11,15 @@ const popularNovels = async (page) => {
|
||||
let totalPages = 1;
|
||||
let url = baseUrl + "p/todas-las-novelas.html";
|
||||
|
||||
const result = await fetch(url);
|
||||
let headers = new Headers({
|
||||
"User-Agent":
|
||||
"'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36",
|
||||
});
|
||||
|
||||
const result = await fetch(url, {
|
||||
method: "GET",
|
||||
headers: headers,
|
||||
});
|
||||
const body = await result.text();
|
||||
|
||||
$ = cheerio.load(body);
|
||||
|
||||
Reference in New Issue
Block a user