I tried this, it doesn't work in 2025, they probably patched. I found the site baidu.erranium.com that I've been using to download baidu links. I hope this helps others. Also, if other exploits exist, please let us know.
I think to avoid wasting time and for convenience, we should download files using BaiduDownloader.com, of course it is a paid file download site but they are quite good because they often help download files under 1GB in their telegram group t.me/baidudownloader_help