UNPKG

rsshub

Version:
58 lines (56 loc) 1.61 kB
import "./esm-shims-CzJ_djXG.mjs"; import "./config-C37vj7VH.mjs"; import "./dist-BInvbO1W.mjs"; import "./logger-Czu8UMNd.mjs"; import "./ofetch-BIyrKU3Y.mjs"; import "./helpers-DxBp0Pty.mjs"; import { t as got_default } from "./got-KxxWdaxq.mjs"; import { load } from "cheerio"; //#region lib/routes/notateslaapp/update.ts const route = { path: "/ota", categories: ["program-update"], example: "/notateslaapp/ota", parameters: {}, features: { requireConfig: false, requirePuppeteer: false, antiCrawler: false, supportBT: false, supportPodcast: false, supportScihub: false }, radar: [{ source: [ "notateslaapp.com/software-updates/history", "notateslaapp.com/software-updates", "notateslaapp.com/" ] }], name: "Tesla Software Updates", maintainers: ["mrbruce516"], handler, url: "notateslaapp.com/software-updates/history" }; async function handler() { const data = (await got_default({ method: "get", url: "https://www.notateslaapp.com/software-updates/history/", headers: { Referer: "https://www.notateslaapp.com/software-updates/history/" } })).data; const $ = load(data); return { title: "特斯拉系统更新", link: "https://www.notateslaapp.com/software-updates/history/", description: "特斯拉系统更新 - 最新发布", item: $("article[id]").toArray().map((item) => { item = $(item); return { title: item.find(".container h1").text(), description: item.find(".notes-container").text(), pubDate: null, link: item.find(".notes-container > .button-container > a").attr("href") }; }) }; } //#endregion export { route };