Home >Web Front-end >HTML Tutorial >How to find the MP3 download address in the source file of the found web page. _html/css_WEB-ITnose
I want to use C language to make a program that can find the MP3 download address of the source file, but I don’t understand HTML. What format is the MP3 download address in?
The source file after entering does not have a download link
If the download address is directly given on the web page, you can use regular expressions Formula
If the download address is given directly in the web page, you can use regular expressions and I will find it in the source file. Then save it in a table, such as "Glory Years" download link: ........................;
I am also a fan of BEYOND
Sometimes the download address is given directly in HTML, sometimes it is given directly in JS, and the request address can also be given directly in JS. In this case, the specific address requires a second request. The general download address is: http://XXXXXXX.mp3 or ftp://XXXXX.mp3. If you use software to download, you can use C# language, which is simpler
Use Firefox browser You can see the network functions.
There is a jump in the middle. If you follow the link, you will get a 301 or 302 jump (possibly multiple jumps). The last one is the real URL
Pay attention to the URL in the middle and you may have to check it. cookies