Giter Club home page Giter Club logo

dotnet-cnblogs-tool's Introduction

My name is Zhiqiang Li

  • 👨‍💻 I’m a Microsoft MVP.
  • 💕 Open source enthusiast.
  • 👔 Software engineer.
  • 🧚‍♂️ Anime lover.
  • 🌱 Like to research technology
  • ❤ My favorite language: C#、Go、Lua.

Github Stats Top Langs

Blog: https://www.cnblogs.com/stulzq

dotnet-cnblogs-tool's People

Contributors

632575987 avatar angelkitty avatar dependabot[bot] avatar incerrygit avatar jtone123 avatar mered1th-wang avatar stulzq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dotnet-cnblogs-tool's Issues

markdown图片路径识别机制问题

如果图片路径后添加了图片注释,dotnet-cnblog 会将注释一同读入文件路径中导致文件打开错误
例如:
文件路径为 img/文件名.png "图片注释"

那么打开路径就为上面一串错误路径
所以需要将带有“” 的字符删除

Metaweblog not working for your blog

作者:晓晨Master
问题反馈:https://github.com/stulzq/dotnet-cnblogs-tool/issues

提取图片成功,共 15 个。
上传失败,正在重试 1,异常:XMLRPC FAULT [500]: "! Metaweblog not working for your blog"
上传失败,正在重试 2,异常:XMLRPC FAULT [500]: "! Metaweblog not working for your blog"
上传失败,正在重试 3,异常:XMLRPC FAULT [500]: "! Metaweblog not working for your blog"
上传失败,异常:XMLRPC FAULT [500]: "! Metaweblog not working for your blog"
image

并且是已经勾选了 允许MetaWeblog博客客户端访问的

dotnet for mac

不需要配置博客MetaWeblog API地址以及您的博客地址,就直接配置完成了???然后验证时就会报错Specify --help for a list of available options and commands.
请问Mac版本是如何配置的

/Users/wanjunbao/Downloads/dotnet-cnblogs.v1.4.2.osx-x64/dotnet-cnblog -upload "/Applications/Typora.app/Contents/Resources/TypeMark/assets/icon/icon_512x512.png" "/Applications/Typora.app/Contents/Resources/TypeMark/assets/icon/icon_256x256.png"

No usable version of libssl was found

ubuntu 22.04

执行 ./dotnet-cnblog

报错:

No usable version of libssl was found
Aborted (core dumped)

我的尝试1:

$ sudo apt -y install libssl-dev

输出如下:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libssl-dev is already the newest version (3.0.2-0ubuntu1.6).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

我的尝试2:

$ sudo apt install -y aspnetcore-runtime-6.0

初始化失败

C:\Users\wickyan\Desktop\dotnet>dotnet-cnblog
     __       __    _  __       __        _____         __    __                       ______             __
 ___/ / ___  / /_  / |/ / ___  / /_      / ___/  ___   / /   / / ___   ___ _  ___     /_  __/ ___  ___   / /
/ _  / / _ \/ __/ /    / / -_)/ __/     / /__   / _ \ / _ \ / / / _ \ / _ `/ (_-<      / /   / _ \/ _ \ / /
\_,_/  \___/\__/ /_/|_/  \__/ \__/      \___/  /_//_//_.__//_/  \___/ \_, / /___/     /_/    \___/\___//_/
                                                                     /___/

作者:晓晨Master
问题反馈:https://github.com/stulzq/dotnet-cnblogs-tool/issues

Unhandled exception. System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Dotnetcnblog.Utils.TeaHelper.Decrypt(Byte[] data, Byte[] key)
   at Dotnetcnblog.Program.Init()
   at Dotnetcnblog.Program.Main(String[] args)

使用版本:https://github.com/stulzq/dotnet-cnblogs-tool/releases/tag/v1.4.1
系统版本:win10专业版20H2 & win10专业版1909

Typora图片上传支持

希望能支持typora编辑器直接将图片上传到博客园并转换为http地址的功能

image

上传图片失败

提取图片成功,共 2 个。
上传失败,正在重试 1,异常:XMLRPC FAULT [500]: "! Metaweblog not working for your blog"
上传失败,正在重试 2,异常:XMLRPC FAULT [500]: "! Metaweblog not working for your blog"
上传失败,正在重试 3,异常:XMLRPC FAULT [500]: "! Metaweblog not working for your blog"
上传失败,异常:XMLRPC FAULT [500]: "! Metaweblog not working for your blog"
XMLRPC FAULT [500]: "! Metaweblog not working for your blog"
上传失败,正在重试 1,异常:XMLRPC FAULT [500]: "! Metaweblog not working for your blog"
上传失败,正在重试 2,异常:XMLRPC FAULT [500]: "! Metaweblog not working for your blog"
上传失败,正在重试 3,异常:XMLRPC FAULT [500]: "! Metaweblog not working for your blog"
上传失败,异常:XMLRPC FAULT [500]: "! Metaweblog not working for your blog"
XMLRPC FAULT [500]: "! Metaweblog not working for your blog"

设置用户名密码时,没有输入密码后异常

设置用户名密码时,没有输入密码后异常

Unhandled exception. System.IndexOutOfRangeException: Index was outside the bounds of the array. at Dotnetcnblog.Utils.TeaHelper.Decrypt(Byte[] data, Byte[] key) at Dotnetcnblog.Program.Init() at Dotnetcnblog.Program.Main(String[] args)

调用任何命令都会如此!

请问配置文件存储在哪里?

上传图片时报异常

运行 dotnet-cnblog proc -f test.md,报错如下

上传失败,正在重试 1,异常:Error while copying content to a stream.
上传失败,正在重试 2,异常:Error while copying content to a stream.
上传失败,正在重试 3,异常:Error while copying content to a stream.
上传失败,异常:Error while copying content to a stream.
Error while copying content to a stream.

判断文件编码只使用BOM的方式

我看到了判断文件编码的方式只是使用了带 BOM的方式,但是有很多时候都是不带 BOM 的,这时的判断是会出错的

刚好我写了博客,关于判断 UTF8 和 GBK 的

C# 判断文件编码

不知道能否使用我的方式

而且我也想添加 https://www.qiniu.com/ 的图片上传,因为我经常需要把博客发布在 csdn 和博客园

图片上传报错

提示如下:

上传失败,正在重试 1,异常:'
', hexadecimal value 0x0B, is an invalid character.
上传失败,正在重试 2,异常:'
', hexadecimal value 0x0B, is an invalid character.
上传失败,正在重试 3,异常:'
', hexadecimal value 0x0B, is an invalid character.
上传失败,异常:'
', hexadecimal value 0x0B, is an invalid character.

已正确配置访问令牌。图片格式也都是png或者jpg。

上传gif

你好,请问目前支持上传gif到博客园吗

打开出现异常

 __       __    _  __       __        _____         __    __                       ______             __

/ / ___ / / / |/ / ___ / / / / ___ / / / / ___ ___ _ ___ / __/ ___ ___ / /
/ _ / / _ / __/ / / / -
)/ / / / / _ \ / _ \ / / / _ \ / _ `/ (
-< / / / _ / _ \ / /
_,
/ _/_/ //|/ _/ __/ _/ /////.__/// _/ _, / // // _/_///
/
__/

作者:晓晨Master
问题反馈:https://github.com/stulzq/dotnet-cnblogs-tool/issues

Unhandled exception. System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Dotnetcnblog.Utils.TeaHelper.Decrypt(Byte[] data, Byte[] key) in E:\OpenSource\dotnet-cnblogs-tool\src\dotnet-cnblogs\Utils\TeaHelper.cs:line 56
at Dotnetcnblog.Program.Init() in E:\OpenSource\dotnet-cnblogs-tool\src\dotnet-cnblogs\Program.cs:line 81
at Dotnetcnblog.Program.Main(String[] args) in E:\OpenSource\dotnet-cnblogs-tool\src\dotnet-cnblogs\Program.cs:line 26

The SSL connection could not be established, see inner exception.

提取图片成功,共 21 个。
上传失败,正在重试 1,异常:The SSL connection could not be established, see inner exception.
上传失败,正在重试 2,异常:The SSL connection could not be established, see inner exception.
上传失败,正在重试 3,异常:The SSL connection could not be established, see inner exception.
上传失败,异常:The SSL connection could not be established, see inner exception.
The SSL connection could not be established, see inner exception.
上传失败,正在重试 1,异常:The SSL connection could not be established, see inner exception.
上传失败,正在重试 2,异常:The SSL connection could not be established, see inner exception.
上传失败,正在重试 3,异常:The SSL connection could not be established, see inner exception.
上传失败,异常:The SSL connection could not be established, see inner exception.
The SSL connection could not be established, see inner exception.
上传失败,正在重试 1,异常:The SSL connection could not be established, see inner exception.
....
....
....
The SSL connection could not be established, see inner exception.

希望添加SVG格式

使用typora

 <img src="D:\OneDrive\Java\流程图\多分支.png" alt="多分支" style="zoom:65%;" />

![类和对象内存分配机制](D:\OneDrive\Java\流程图\类和对象内存分配机制.svg)

以上两种会报错
上传失败,异常:XMLRPC FAULT [500]: "! only allow (.jpg|.gif|.png|.jpeg)$"

Github Actions

建议利用 Github Actions 直接发布 Released 版本,毕竟很多人的计算机环境都是没有 .NET 环境的

支持mac吗?

如果不支持,有没有其他类似工具推荐?谢谢

接口返回400

提取图片成功,共 1 个。
上传失败,正在重试 1,异常:The remote server returned an error: (400) Bad Request.
上传失败,正在重试 2,异常:The remote server returned an error: (400) Bad Request.
上传失败,正在重试 3,异常:The remote server returned an error: (400) Bad Request.
上传失败,异常:The remote server returned an error: (400) Bad Request.
The remote server returned an error: (400) Bad Request.
处理完成!文件保存在:123-cnblog.md

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.