How to download an audio and video without watermark? I teach you!

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/sergiojune/article/details/100306575

From the last to get a sound font anti-climb long gone, not seen can poke here to see the white will also look to crack vibrato font anti-climb was due to technical reasons want to get the video sharing page, I can not get, and later to keep up with technology, but also lazy, put down a big six months later. Now we decided to re-engage under ado, directly on the web site.

To resolve without watermark video, you need the phone side profile - Share as a link> -> the top left corner , so you'll get a link like this: http://v.douyin.com/NT5Nck/ on the PC side open will be automatically redirected to this link: https://www.iesdouyin.com/share/user/88445518961?timestamp=1548046967

image

You will see the pull down all she published a video, the video is that we want no watermark video. Then there is the familiar step, open developer tools, we want to find the request. It is easy to find the requested we want

image

Inside two parameters may be required encryption, or the old way, to direct the search parameters need to be encrypted name: _signature , it is easy to find this place

image

Direct breakpoint refresh the page, you will see this

image

Obviously we want to see two parameters are here, and generate up to find their way to. View function call stack on the right, you can easily see the parameters of the generation method signature

image

Further down a function call stack, you can also see the parameters dytk is the direct request personal home page in return, do not require encryption, this way you only need to engage in the signature parameters.

image

Now again the next breakpoint, directly under where the signature is generated, so that the correlation function for easy viewing.

image

Here comes _bytedAcrawler see how the generated objects, it is easy to find it here to generate a location

image

You can see is a  require  a method to request a file-related, but the mouse on this method, that is not the way we think, but the way they rewrite

image

Click to see directly into the next step is to click on the next step to make the code run, jump directly to the function we just looked at.

image

See here also need to use these two functions are a mere trifle

image

image

This object is generated, basically completed, id finally need to use encryption parameter is the video home page, this easy to handle, it's done.

After the code will need to buckle down, the direct use of third-party libraries python  pyexecjs  run, there will be error

image

TypeError: Can not read property 'userAgent' of undefined easy to handle this problem, because the engine is pyexecjs v8, dom is not supported, so you can build yourself a target dom. Like so that you can get:

image

Now the code is generated parameters we want, but sometimes can not get the data, the group said to be a big brother needed a tac variable here:

image

Also at the request profile can be obtained directly using regular can get, renderings

image

Given just practiced hand, there may also need a lot of other browser debugging variables did not come out, if necessary, then you can debug their own. Another code has been uploaded to github: https: //github.com/SergioJune/Spider-Crack-JS Note: Currently mou sound on the PC side is can not see the video, but the mobile terminal is, so to find a video link, the request will be able to head into this

image

Renderings

image

No public for a long time did not update the original, because recently a little something, now reopened, and time is started up, so now restart to update the original, try two articles updated weekly, the article is not limited to the reverse, on the order of reptiles, frame learning Python and the foundation, I hope you like it, and another suggestion may be put forward, so that we become good together in the comments section!

Scan code to see more articles

image

Guess you like

Origin blog.csdn.net/sergiojune/article/details/100306575