Files
goodreads-book-search/config/index.js
2025-01-18 21:26:13 +03:00

14 lines
388 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
require("dotenv").config();
const config = {
goodreadsBaseUrl: "https://www.goodreads.com/search?q=",
headers: {
"User-Agent":
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.105 Safari/537.36",
},
// Goodreads'e istek atarken, iki istek arasındaki zaman farkıdır
fetchTimeout: 2000,
};
module.exports = config;