赞
踩
本文主要介绍AIGC算法,readLink实现url识别pdf、html标题和内容
cheerio
解析网页pdf-parse
解析PDF文件const express = require("express"); const axios = require("axios"); const ytSearch = require("yt-search"); const cheerio = require("cheerio"); const { PDFDocument } = require("pdf-lib"); const pdfParser = require("pdf-parse"); const app = express(); const port = 3000; app.get("/read-link", async (req, res) => { const url = req.query.url; if (!url) { return res.status(400).send("URL is required"); } try { const response = await axios.get(url, { responseType: "arraybuffer" }); const contentType = response.headers["conte
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。