Home > Article > Web Front-end > Firebug subtitle file JSON address acquisition code_javascript skills
I watched a TED video earlier, about school education killing creativity.
The video is very good and has Chinese subtitles. A high-definition version is also available for download below, which I am very happy about.
Unfortunately, subtitles are not available for download. (Or I didn’t find it)
As the saying goes, you can have enough food and clothing by yourself. I directly used Firebug to find the address of the subtitle file. After downloading it, I saw that it was in JSON format. I then thought that I could convert it to srt subtitles by directly using JS to output the string.
The code is as follows, a very simple code, as long as it is practical. I don’t care about efficiency, security and boundary issues, I just want to solve my problem as quickly as possible~
I have to say that learning a programming language is very helpful The meaning, no matter what it is, can easily solve some practical problems. It's great fun.
JS is a very powerful language. It is very convenient to process JSON and XML. It is enough for most of the time. However, there will also be times when you are unable to do what you want, especially when it comes to the operation of the system, there are always many flaws. But if you include Microsoft's JScript, it's pretty good. I used to want to learn Python, but now I feel free to use it as long as I like it. Perhaps this is related to the fact that I am no longer engaged in IT-related industries. It’s enough~