语雀文档抓取工具(爬虫) 可以保存任意用户整个语雀知识库为Markdown格式 (包含完整目录结构和索引)
使用: 安装 python3
https://www.python.org/downloads/
执行安装运行模块
pip install requests
执行抓取:
python3 main.py 语雀文档地址
demo:
python3 main.py https://www.yuque.com/burpheart/phpaudit
语雀爬虫 可以保存整个语雀知识库为Markdown格式 (包含完整目录结构和索引)
语雀文档抓取工具(爬虫) 可以保存任意用户整个语雀知识库为Markdown格式 (包含完整目录结构和索引)
使用: 安装 python3
https://www.python.org/downloads/
执行安装运行模块
pip install requests
执行抓取:
python3 main.py 语雀文档地址
demo:
python3 main.py https://www.yuque.com/burpheart/phpaudit
很好的项目,生成md非常方便,但是如果md中的图片链接如果可以支持转换成图床的就更好了,我写了一个可以把语雀手动导出md的图片链接批量转换成图床链接的转换器,作者可以借鉴借鉴,欢迎fork学习参考一下,期待添加图床的功能。https://github.com/Undertone0809/md-img-converter
图片能离线下嘛!
部分收藏库提示以下报错信息:
E:\yuque-crawl>python3 main.py https://www.yuque.com/aceld/lfhu8y Traceback (most recent call last): File "main.py", line 87, in <module> get_book(sys.argv[1]) File "main.py", line 65, in get_book if (temp[doc['parent_uuid']].endswith("/")): KeyError: 'uPPZE7JwsEFElXBW'
Traceback (most recent call last):
File "/Users/liyidan/Downloads/yuque-crawl-main/main.py", line 98, in
get_book()
File "/Users/liyidan/Downloads/yuque-crawl-main/main.py", line 45, in get_book
if (os.path.exists("download/" + str(docsjson['book']['id'])) == False):
~~~~~~~~^^^^^^^^
KeyError: 'book'
如题
图片能离线下嘛
主要是表达一下感谢,我找了好多个,就这个用起来又快又方便,谢谢
图片能离线下嘛
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.