fxd-app-fetch 是一个可以运行在命令行和 fxd ui(flowdeer)下的网页抓取工具。它基于 playwright 实现,可以处理复杂的动态网页。
对于需要登录的网页,之前我们提供了 keeplive 方案,但这要求用户定时运行 keeplive 命令。在 1.0.14 中,我们支持了 CookieCloud 插件,用户可以定时将浏览器中的 Cookie 自动同步,从而实现 Cookie 的全自动持续更新。
安装
安装主命令
npm install -g fxd-app-fetch
安装 playwright 依赖
npx playwright@1.51.0 install --with-deps
运行
fxd-app-fetch main --url="https://weibo.cn" --cookiecloud_host="https://ccc.ft07.com" --cookiecloud_uuid="<uuid>" --cookiecloud_password="<password>"
PS:解密是在本地进行的,因此密码不会被发往cookiecloud_host。
更多
关于 fxd-app-fetch 的更多说明,请参考之前的文章。