rsshub
Version:
Make RSS Great Again!
52 lines (50 loc) • 1.34 kB
JavaScript
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/douban/other/later.ts
const route = {
path: "/movie/later",
categories: ["social-media"],
example: "/douban/movie/later",
parameters: {},
features: {
requireConfig: false,
requirePuppeteer: false,
antiCrawler: false,
supportBT: false,
supportPodcast: false,
supportScihub: false
},
name: "即将上映的电影",
maintainers: ["DIYgod"],
handler
};
async function handler() {
const $ = load((await got_default({
method: "get",
url: "https://movie.douban.com/cinema/later/beijing/"
})).data);
return {
title: "即将上映的电影",
link: "https://movie.douban.com/cinema/later/",
item: $("#showing-soon .item").toArray().map((ele) => {
const description = $(ele).html();
const name = $("h3", ele).text().trim();
const date = $("ul li", ele).eq(0).text().trim();
const type = $("ul li", ele).eq(1).text().trim();
const link = $("a.thumb", ele).attr("href");
return {
title: `${date} - 《${name}》 - ${type}`,
link,
description
};
})
};
}
//#endregion
export { route };