This commit is contained in:
Rajarshee Chatterjee
2021-06-20 23:03:02 +05:30
parent 7e28d12a8a
commit 35d5cf987a
2 changed files with 1498 additions and 1157 deletions
File diff suppressed because one or more lines are too long
+9 -1
View File
@@ -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);