GithubHelp home page GithubHelp logo

exportmd-rectify-pics's Introduction

ExportMD-rectify-pics

1、写在前面

Version License python

简介:ExportMD语雀知识库自动导出为 Markdown 格式,支持同时导出多个知识库。 但ExportMD导出连续三张图片时,会出现错误,只有第一张图片的内容会被识别,本复刻版本增加了正则表达式,修复这一情况

本复刻版本无法提交issue,有问题欢迎到语雀评论区和我交流!

欢迎给我的语雀文档点赞,或者给我复刻的仓库star

另外我想说明一下,复刻这个仓库的目的是为了防止重要的笔记丢失,让大家能够有一个本地的markdown笔记备份,但我并不希望语雀因此流失用户,语雀真的是一款非常优秀的笔记软件,我会一直支持下去的!

版本v1.0

API导出连着的图片时,会出现很多<br />,这时连续图片中只有第一张图片会被识别

![image.png](https://cdn.nlark.com/xxx1.png)<br />![image.png](https://cdn.nlark.com/xxx2.png)<br />![image.png](https://cdn.nlark.com/xxx3.png)

为了解决这一问题,在原来的ExportMD基础上,我增加了正则表达式,现在连续图片的导出已经没有问题 这里特别感谢ExportMD!

版本v1.1

实际使用的时候有遇到一些小问题,主要是接口限制等会导致有时候请求失败 这里使用@stone0090的解决方案

https://github.com/stone0090/ExportMD-rectify-pics/blob/bf2b79ef0afaffcad78253cafa1760f45359623e/ExportMD.py#L198

修改为同步导出,且每次导出等待100ms 本人技术水平有限,感谢@stone0090!的修复

2、安装

环境要求

  • python >= 3.6

安装 python 依赖

pip install -r requirements.txt

3、使用

获取 namespace

知识库 namespace:知识库 URL 中路径部分

知识库 https://www.yuque.com/YourYuqueUserName 对应的 namespaceYourYuqueUserName

获取 token

token

使用 python3 运行

python ExportMD.py

输入namespace和token

⬆ ⬇移动,space选择,a全选,Enter确认 image

exportmd-rectify-pics's People

Contributors

zhenhongdu avatar truda8 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.