Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): 纯 CLI 版本支持 #47

Merged
merged 15 commits into from
Apr 5, 2024
Merged

feat(cli): 纯 CLI 版本支持 #47

merged 15 commits into from
Apr 5, 2024

Conversation

Chilfish
Copy link
Owner

@Chilfish Chilfish commented Apr 3, 2024

将开始支持纯 CLI 环境运行,#45

@Chilfish Chilfish added the enhancement New feature or request label Apr 3, 2024
Copy link

vercel bot commented Apr 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
weibo-archiver ⬜️ Ignored (Inspect) Visit Preview Apr 5, 2024 6:34am

Copy link
Owner Author

@Chilfish Chilfish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad😅,ofetch 新版设不了代理,undici 又是 node 专属,或许我应该先把 http-client 迁移到 axios?🤔

Chilfish added 3 commits April 4, 2024 17:43
ofetch 现不支持代理,改用 axios,并将 fetchOptions 挂载在 globalThis 上
cli: fetch and save posts

cli: save path

fixs
@Chilfish
Copy link
Owner Author

Chilfish commented Apr 4, 2024

CLI 部分差不多好了,接下来还要改一下 web 部分导入的方法,兼容一下 CLI 的数据格式。一行一行地 parse 再插入吧

{"id": 13}
{"id": 23}

@Chilfish Chilfish marked this pull request as ready for review April 5, 2024 06:45
@Chilfish Chilfish merged commit e66c8b5 into main Apr 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant