生成百度短链 mr.baidu.comxxxx
首先我们打开网站:http://www.hekaiyu.cn/baidulink.php?url=sogou.com
生成百度 link的地址http://www.baidu.com/link?url=a3f48d30fc293c5e471ef23de092fddc99f9ce982918f7e823c8
然后打开网站2 url编码http://www.jsons.cn/urlencode
将我们刚刚生成的link连接
编码成http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3Da3f48d30fc293c5e471ef23de092fddc99f9ce982918f7e823c8
然后加上域名 让他变成http://m.baidu.com/56We56eY5Lq6/tc?bdver=2&bdenc=1&bdcl=3&nsrc=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3Da3f48d30fc293c5e471ef23de092fddc99f9ce982918f7e823c8
然后我们随便找一个 能模拟post请求的工具
我这边用apiposthttps://docs.apipost.cn/preview/e10193bcb93e8d24/e9b48adb740aceac
这是文档POST请求https://mbd.baidu.com/share/v1/share/create?ua=1440_2931_android_12.3.0.11_560
User-Agent
okhttp/3.11.0 SP-engine/2.25.0 Dalvik/2.1.0 (Linux; U; Android 12; 22011211C Build/SP1A.210812.016) baiduboxapp/12.3.0.11 (Baidu; P1 12)
BODY 改成json
{"title":"!","content_type":"video","need_short_url":"1","only_short_url":"1","url":"http://m.baidu.com/56We56eY5Lq6/tc?bdver=2&bdenc=1&bdcl=3&nsrc=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3Da3f48d30fc293c5e471ef23de092fddc99f9ce982918f7e823c8","framework":"light","source":"feedvideo","platform":"copylink","ctime":"","extend":{"nid":""}}
将json里面的url 替换成你刚刚生成的就行
https://mr.mbd.baidu.com/r/KdIHZkl6hi?f=cp&u=b5939768adaf8980
将mbd删掉 就可以得到 mr.baidu.com的短连接了
https://mr.baidu.com/r/KdIHZkl6hi?f=cp&u=b5939768adaf8980
生成百度 link的地址http://www.baidu.com/link?url=a3f48d30fc293c5e471ef23de092fddc99f9ce982918f7e823c8
然后打开网站2 url编码http://www.jsons.cn/urlencode
将我们刚刚生成的link连接
编码成http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3Da3f48d30fc293c5e471ef23de092fddc99f9ce982918f7e823c8
然后加上域名 让他变成http://m.baidu.com/56We56eY5Lq6/tc?bdver=2&bdenc=1&bdcl=3&nsrc=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3Da3f48d30fc293c5e471ef23de092fddc99f9ce982918f7e823c8
然后我们随便找一个 能模拟post请求的工具
我这边用apiposthttps://docs.apipost.cn/preview/e10193bcb93e8d24/e9b48adb740aceac
这是文档POST请求https://mbd.baidu.com/share/v1/share/create?ua=1440_2931_android_12.3.0.11_560
User-Agent
okhttp/3.11.0 SP-engine/2.25.0 Dalvik/2.1.0 (Linux; U; Android 12; 22011211C Build/SP1A.210812.016) baiduboxapp/12.3.0.11 (Baidu; P1 12)
BODY 改成json
{"title":"!","content_type":"video","need_short_url":"1","only_short_url":"1","url":"http://m.baidu.com/56We56eY5Lq6/tc?bdver=2&bdenc=1&bdcl=3&nsrc=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3Da3f48d30fc293c5e471ef23de092fddc99f9ce982918f7e823c8","framework":"light","source":"feedvideo","platform":"copylink","ctime":"","extend":{"nid":""}}
将json里面的url 替换成你刚刚生成的就行
https://mr.mbd.baidu.com/r/KdIHZkl6hi?f=cp&u=b5939768adaf8980
将mbd删掉 就可以得到 mr.baidu.com的短连接了
https://mr.baidu.com/r/KdIHZkl6hi?f=cp&u=b5939768adaf8980