gphotos-scraper
Version:
A tool to extract public url and metadata from shared album
21 lines • 809 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.apiClient = void 0;
const node_https_1 = __importDefault(require("node:https"));
const axios_1 = __importDefault(require("axios"));
const agent = new node_https_1.default.Agent({
keepAlive: true,
maxSockets: 100,
});
exports.apiClient = axios_1.default.create({
httpsAgent: agent,
headers: {
"Accept-Encoding": "gzip, deflate, br",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36",
},
timeout: 10000, // Reasonable timeout
});
//# sourceMappingURL=axiosClient.js.map