axzml / csdnexporter Goto Github PK
View Code? Open in Web Editor NEWCSDN 博客导出工具, 支持 Markdown / PDF 格式的导出
CSDN 博客导出工具, 支持 Markdown / PDF 格式的导出
2024年5月21日好像失效了,csdn好像加了反爬虫机制已经不能正常转换了,padoc也无法正常转换
Traceback (most recent call last):
File "main.py", line 153, in
download_csdn_category_url(args.category_url,
File "main.py", line 104, in download_csdn_category_url
article_list = soup.find_all('ul', {'class': 'column_article_list'})[0]
IndexError: list index out of range
如题,希望可以加上导出图片的功能
article_url='https://blog.csdn.net/shimazhuge/article/details/105227229'
Traceback (most recent call last):
File "main.py", line 167, in
to_pdf=args.to_pdf)
File "main.py", line 133, in download_csdn_single_page
title = soup.find_all('h1', {'class': 'title-article'})[0].string ## 使用 html 的 title 作为 md 文件名
IndexError: list index out of range
博主,您写的这个功能使用起来特别棒,请问可以将这段代码使用在我最近写的一个QQ机器人里面吗?我会标明出处,不盈利,只是凭借兴趣尝试着做的。
Export Markdown File To markdown/数据结构:图(Graph)【详解】.md
Traceback (most recent call last):
File "main.py", line 164, in <module>
download_csdn_single_page(args.article_url,
File "main.py", line 138, in download_csdn_single_page
html2md(details_url, md_file, with_title=with_title)
File "main.py", line 56, in html2md
parser = Parser(html)
File "/home/soban/CSDNExporter/utils.py", line 27, in __init__
self.recursive(self.soup)
File "/home/soban/CSDNExporter/utils.py", line 119, in recursive
self.recursive(child)
File "/home/soban/CSDNExporter/utils.py", line 119, in recursive
self.recursive(child)
File "/home/soban/CSDNExporter/utils.py", line 119, in recursive
self.recursive(child)
File "/home/soban/CSDNExporter/utils.py", line 67, in recursive
soup.contents.insert(0, NavigableString('\n```{}\n'.format(language)))
UnboundLocalError: local variable 'language' referenced before assignment
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.