UNPKG

gphotos-scraper

Version:

A tool to extract public url and metadata from shared album

18 lines (15 loc) 428 B
import https from "node:https"; import axios from "axios"; const agent = new https.Agent({ keepAlive: true, maxSockets: 100, }); export const apiClient = axios.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 });