This is the fifth day of my participation in Gwen Challenge

1, the background

In leisure time at ordinary times, we often brush dy pastime or absorb some of the “nutrition”, but we found when we save the video will be combined with the watermark and the end, will also affect our experience in different degree, so I will find out some in some technical community download dy hd video tools, some still charge, Being a programmer requires doing something, and that’s where this series comes in.

2. Analysis process

2.1 Preparations

First, we open an app, enter the home page of a blogger, and click “Share” in the upper right corner.

Then we click share home page, share to their own wechat, we can get the home page access address

After Chrome browser is opened, you can see the content of the home page. After observation, we find that we can get the number of followers, fans, overall number of likes, works list and likes list. This paper first analyzes the loading process of works list and the interface involved.

2.2 Make full use of the browser’s developer tools

We first open the Chrome debugging tool in the browser, switch to the Network TAB and refresh the page, we can see the interface access situation, as shown in the picture:

In this paper, the interfaces of the list of works are analyzed for the time being, and other interfaces are analyzed one by one in subsequent messages. The interface returns messages through the interface, and the interface loading the video list is soon found, as shown in the figure

We have direct access to the interface, found to have direct access to, and returns a string of json, through formatting tools after processing, we found that the inside back a lot of content we want, such as no watermarks hd video, video music address, etc., the screenshot is high-definition video source address and playback without watermark.

2.3 Problems still to be solved

So far, we have been able to get the interface and content of the list of works through the URL of the homepage of the blogger, but this is not enough, because we need to implement a tool with download function -, there are still many problems to be solved, the following two points are put forward for the time being, there will be more problems in the subsequent implementation process.

1. We found that there are several parameters in the interface address, we need to find its source, among which _signature is obtained through a series of JS methods, and some methods are encrypted, so we need to break through carefully.

sec_uid=MS4wLjABAAAA8xUmseK9-WQLGOWbjXCpYcJZU0HPGUf9-qOZ1S7oZ0Q&count=21&max_cursor=0&aid=1128&_signature=OtapZAAAWh.SDI sZX1OMhTrWqX&dytk=

2. During the debugging process, I found that the interface seemed to limit the access to the external chain, which also needs careful consideration

So far, the first step has been successfully completed. In the next phase, we will start to break through the above two problems one by one. To find out what happens next, listen next time.