吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 5889|回复: 69
收起左侧

[原创工具] 有道云笔记 文件 永久直链解析(无需服务器).NET 版本

  [复制链接]
岔路ko 发表于 2023-12-1 18:19
本帖最后由 岔路ko 于 2023-12-1 21:27 编辑

借用了坛友帖子的思路
有道云笔记永久直链解析
https://www.52pojie.cn/thread-1823448-1-1.html

有道云笔记 文件 永久直链解析(无需服务器) - 『原创发布区』 - 吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

(出处: 吾爱破解论坛)

主要是想学习一下技术并看看原理,原来并不复杂。
主要可以用于软件分发,版本更新。相当于一个免费的服务器吧,再使用短地址来生成一下短地址,那是非常完美了。

1.有道云笔记分享地址:https://note.youdao.com/s/cusiy8WX
2.使用本工具解析的地址:http://note.youdao.com/yws/api/personal/file/WEBfb1d035ffc78cb76efe912ac254fcb0b?method=download&inline=true&shareKey=bc6ee9ebf60cba8c2bd793ad30dec7f1
3.使用新浪短网址生成的地址:https://dwz.win/a6ZP

新浪短网址 可以在这个地址生成:新浪短网址 短网址生成 网址缩短服务 - 短网址 (sina.lt)

觉着不错可以给个免费的评分,谢谢。

工具在这个文件夹下,自己也可以编译。
有道解析.png


[Visual Basic .NET] 纯文本查看 复制代码
Public Class Form1

    Private Sub DownText(strUrl As String)
        Dim csStopwatch As New Stopwatch
        strUrl = GetHttpResutl(strUrl)
        Dim strPattern As String = "id=(.*?)&type="
        Dim match As Match = Regex.Match(strUrl, strPattern)
        If (match.Success) Then
            Dim strID As String = match.Groups(0).Value.Replace("id=", "").Replace("&type=", "")
            strUrl = $"http://note.youdao.com/yws/public/note/{strID}?editorType=0&cstk=cGtjFpHb"
            Dim jsonResult As String = GetHttpResutl(strUrl, False)
            Dim csRootobject As Rootobject = Newtonsoft.Json.JsonConvert.DeserializeObject(Of Rootobject)(jsonResult)
            Dim strP As String = csRootobject.p.Replace("/", "")
            TextBox2.Text = $"http://note.youdao.com/yws/api/personal/file/{strP}?method=download&inline=true&shareKey={strID}"
        Else
            MsgBox("分享链接无法解析", MsgBoxStyle.OkOnly, "提示")
        End If
        csStopwatch.Stop()
    End Sub

    Private Function GetHttpResutl(strUrl As String, Optional ByVal bolUrl As Boolean = True) As String

        Using httpClient As New HttpClient()
            Try
                ' 发起 GET 请求
                Dim response As HttpResponseMessage = httpClient.GetAsync(strUrl).Result
                ' 确保请求成功
                response.EnsureSuccessStatusCode()
                ' 读取 JSON 数据
                If bolUrl Then
                    Return response.RequestMessage.RequestUri.ToString
                Else
                    Return response.Content.ReadAsStringAsync().Result
                End If
            Catch ex As HttpRequestException
                MsgBox($"发生 HTTP 请求错误: {ex.Message}", MsgBoxStyle.OkOnly, "提示")
                Return ""
            End Try
        End Using
    End Function



    Private Sub Btn_JX_Click(sender As Object, e As EventArgs) Handles Btn_JX.Click
        TextBox2.Text = String.Empty
        DownText(txt_Url.Text)
    End Sub


End Class




Public Class Rootobject
    Public Property p As String
    Public Property ct As Integer
    Public Property su As Object
    Public Property pr As Integer
    Public Property au As Object
    Public Property pv As Integer
    Public Property mt As Integer
    Public Property sz As Integer
    Public Property domain As Integer
    Public Property tl As String
    Public Property isFinanceNote As Boolean
End Class



一起进步,瑞思拜。

免费评分

参与人数 10吾爱币 +17 热心值 +9 收起 理由
quanjia997 + 1 + 1 谢谢@Thanks!
jiaabz + 1 + 1 热心回复!
lwkz9600 + 1 + 1 谢谢@Thanks!
hcm3292 + 1 + 1 谢谢@Thanks!
Lcstar + 1 + 1 我很赞同!
风之暇想 + 7 + 1 感谢发布原创作品,吾爱破解论坛因你更精彩!
shenguoping + 1 + 1 热心回复!
schtg + 1 + 1 谢谢@Thanks!
cbkxh + 2 我很赞同!
461735945 + 1 + 1 用心讨论,共获提升!

查看全部评分

本帖被以下淘专辑推荐:

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

bennyrose 发表于 2023-12-31 22:13
楼主这个东西失效了 那个 直连  {
    "canTryAgain": false,
    "scope": "SECURITY",
    "error": "207",
    "message": "Message[AUTHENTICATION_FAILURE]: User token must be authenticated.",
    "objectUser": null
} 需要登录后才给你下载了! 修复一下吧  
hondao 发表于 2023-12-21 12:12

{
    "canTryAgain": false,
    "scope": "SECURITY",
    "error": "207",
    "message": "Message[AUTHENTICATION_FAILURE]: User token must be authenticated.",
    "objectUser": null
}
pangshaohua 发表于 2023-12-1 18:34
leeyolo 发表于 2023-12-1 19:29
感谢分享
G0028Q 发表于 2023-12-1 19:29
学习学习了
EZ4TNT 发表于 2023-12-1 19:54
好,学习了
雾都孤尔 发表于 2023-12-1 19:59
学习了,感谢分享。
cbkxh 发表于 2023-12-1 20:01
感谢分享,学习一下
89684828 发表于 2023-12-1 20:11
支持一下,谢谢!
QWE121 发表于 2023-12-1 20:14
谢谢谢谢谢谢谢谢想
ghostwindows 发表于 2023-12-1 20:34
感谢楼主无私分享
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 提醒:禁止复制他人回复等『恶意灌水』行为,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-4-29 03:03

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表