junyiz / dature Goto Github PK
View Code? Open in Web Editor NEW新浪博客批量备份工具
License: MIT License
新浪博客批量备份工具
License: MIT License
比较早的文章新浪博客的博文目录里不会显示出来,博文目录不可见的话博文就备份不到。
给老哥请个安先 LL
然后是报错,抓取完毕之后显示下面这个,而且博文图片有漏抓,不知跟这个错有关西不
抓取完毕, 博客存储目录:/Users/qulo/blog
/usr/local/lib/node_modules/dature/node_modules/picture-downloader/pictureDownloader.js:26
const request = url.startsWith('https') ? https.request : http.request
^
TypeError: Cannot read properties of undefined (reading 'startsWith')
at pictureDownloader (/usr/local/lib/node_modules/dature/node_modules/picture-downloader/pictureDownloader.js:26:23)
at ClientRequest. (/usr/local/lib/node_modules/dature/node_modules/picture-downloader/pictureDownloader.js:41:33)
at ClientRequest.emit (node:events:394:28)
at Socket.socketCloseListener (node:_http_client:423:9)
at Socket.emit (node:events:406:35)
at TCP. (node:
有输入密码的参数吗?
范例中抓取牛根生的博客测试没问题,但下面这个博客抓取则会报错
http://blog.sina.com.cn/u/1587015434
报错:(node:19969) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'replace' of null at Object.extract [as sina] (/usr/local/lib/node_modules/dature/lib/extractor/sina.js:45:8) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async fetch (/usr/local/lib/node_modules/dature/lib/fetch.js:18:16) (Use
node --trace-warnings ...to show where the warning was created) (node:19969) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:19969) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit **code.
**
博客现在不对外开放了,但是作者本人登录后,文章列表什么的都和以前一样。
现在抓取的时候提示抓取成功,0文章。(也就是没有登录状态)
能不能修改一下让程序调用IE的登录状态呀?这样就可以抓取成功了吧。
望百忙之中抽空回复一下。谢谢
挺好用,发现以下两个过期项目:
1、新浪博客;size结尾的图片下载不了,去掉后才能下载
2、csdn下载失效了
执行命令后,我自己的博客无法导出
能识别到我博客的名字,但是导出0条
然后发现点击任何人的博客都提示:系统维护中,博文仅作者可见。登陆后可查看本人文章。
可能新浪博客快要停运了。
关闭这个权限了?
如题
很多以前正常的博文被新浪转为私密博文了,请问能否支持备份这部分的内容?
从Html获取的图片地址是类似: http://s15.sinaimg.cn/mw690/0022E8QHzy7WvtCeEUe4e&690
可以换为: http://s15.sinaimg.cn/orignal/0022E8QHzy7WvtCeEUe4e
目录的: mw690 替换为 orignal
最后的 &690 删除
这样就完美了。
输入命令,正在抓取… 过了一会儿就暂停了,没有生成东西
总体上工具可用,多谢!
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.