Medium Exporter 使用教程

Medium Exporter 使用教程

mediumexporterExport your stories published on medium.com to markdown for easy import 项目地址:https://gitcode.com/gh_mirrors/me/mediumexporter

项目介绍

Medium Exporter 是一个开源工具,用于将 Medium 上的文章导出为 Markdown 格式,便于在其他平台如 Jekyll 博客中使用。该项目由 xdamman 开发,采用 MIT 许可证。

项目快速启动

安装

首先,通过 npm 安装 Medium Exporter:

npm install -g mediumexporter

使用

导出单篇文章:

mediumexporter https://medium.com/the-adventures-of-an-ios-developer/swift-guard-486f88ef5bd5 > medium_post.md

使用 Fish 脚本:

eval (mediumexporter https://medium.com/the-adventures-of-an-ios-developer/swift-guard-486f88ef5bd5 > medium_post.md)

查看所有选项:

mediumexporter -h

应用案例和最佳实践

案例一:在 Jekyll 博客中使用

将 Medium 文章导出为 Markdown 后,可以直接在 Jekyll 博客中使用。例如:

mediumexporter https://medium.com/your-blog-post-link > _posts/2023-10-01-your-blog-post.md

案例二:自动化导出

可以编写脚本定期导出 Medium 上的所有文章:

const exporter = require('mediumexporter');

exporter.getFeed('https://medium.com/feed/@yourusername', { output: 'content' });

典型生态项目

Jekyll

Jekyll 是一个静态站点生成器,广泛用于个人、项目或组织的站点。通过将 Medium 文章导出为 Markdown,可以无缝集成到 Jekyll 博客中。

Hugo

Hugo 是另一个流行的静态站点生成器,支持 Markdown 格式。使用 Medium Exporter 导出的文章可以直接用于 Hugo 站点。

通过以上步骤,您可以轻松地将 Medium 上的文章导出为 Markdown 格式,并在各种静态站点生成器中使用。

mediumexporterExport your stories published on medium.com to markdown for easy import 项目地址:https://gitcode.com/gh_mirrors/me/mediumexporter

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

凌洲丰Edwina

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值