| 9 | import * as cheerio from "cheerio"; |
| 10 | |
| 11 | import { htmlEscape } from "@utils/htmlEscape"; |
| 12 | |
| 13 | const BGP_COMMON_HEADERS = { |
| 14 | "User-Agent": |
| 15 | "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.112 Safari/537.36", |
| 16 | "Accept": |
| 17 | "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8", |
| 18 | "Accept-Encoding": "gzip, deflate", |
| 19 | "Referer": "https://bgp.tools/", |
| 20 | "Accept-Language": "en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7", |
| 21 | "Upgrade-Insecure-Requests": "1", |