sead 最近的时间轴更新
sead

sead

V2EX 第 670636 号会员,加入于 2024-01-10 12:08:49 +08:00
今日活跃度排名 5304
docker 无头浏览器群控, express 开箱即用
分享创造  •  sead  •  9 天前  •  最后回复来自 sead
3
基于 cheerio, 写了个低代码,高效解析轮子
分享创造  •  sead  •  192 天前  •  最后回复来自 sead
11
sead 最近回复了
9 天前
回复了 Alcex 创建的主题 编程 FastAPI 与 Nodejs 的 Express 哪个更适合开发 API
@Alcex

https://github.com/serping/express-scraper

需要 TS 版本,可以参考这个, 我之前刚入坑 express 找不到开箱就能用的。

可以部署到 vercel
9 天前
回复了 sead 创建的主题 分享创造 docker 无头浏览器群控, express 开箱即用
@clhcowboy

本地启动后用下面这个 curl 测试,项目主要用于 js 渲染页面,具体到 dom 解析不建议写在一起。

curl -X POST http://127.0.0.1:3010/api/v1/fetch \
-H "Content-Type: application/json" \
-H "X-Api-key: your_api_key" \
-d '{
"url": "https://api.ipify.org"
}'
9 天前
回复了 codingMayCry 创建的主题 程序员 实现网页截图
https://github.com/seadfeng/headless-browser-clusters

改一下就可以变成截图 api 服务
shadcn
<DropdownMenu modal={false}>
解决下拉问题 “modal={false}”
cloudflare pages? 数据通信好像有点慢,不会是 D1 吧?

CF pages 撸 DB 还是有点难受
44 天前
回复了 xuanwu 创建的主题 分享创造 中文 API 表达正则
这个除了好玩之外,用起来不别扭吗?
49 天前
回复了 Frytea 创建的主题 分享发现 ai 生图还挺好玩
第一眼反复确认是否打少了个零
@forty 对于一天产几个站的撸个字符就上了
68 天前
回复了 zfjdif 创建的主题 分享创造 [自荐] https://selfh.app - All in boom 导航平台
i18n 思路参考:
export type LocaleType = "en" | "es" | "fr" | "it" | "de_DE" | "pt" | "nl" | "pl" | "sv" | "tr" ;
export type Post = {
slug: string;
status: Status;
createdAt: string;
updatedAt: string;
author: string;
images: string[];
featured_image: string;
i18n: Partial<Record<LocaleType, Article>>;
related_posts: {
slug: string;
}[]
}

type Article = {
title: string;
subtopic: string;
keywords: string;
meta_title: string;
meta_description: string;
translated?: boolean;
body: string;
faqs: string;
tags: string[];
}

小型的有准备设计自动化产 JSON 文件,提交上去免数据库
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1872 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 18ms · UTC 15:28 · PVG 23:28 · LAX 07:28 · JFK 10:28
Developed with CodeLauncher
♥ Do have faith in what you're doing.