Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Python and JS decryption how to crawl the data of a voice roaming website

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains the "Python and JS decryption how to crawl a certain sound roaming site data", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "Python and JS decryption how to crawl a certain sound roaming site data" bar!

First open the website.

Https://www.zymk.cn/1/37988.html

Open developer tools

Select the XHR tab and did not find anything

Check the URL values of these pictures again.

Http://mhpic.xiaomingtaiji.net/comic/D%2F%E6%96%97%E7%A0%B4%E8%8B%8D%E7%A9%B9%E6%8B%86%E5%88%86%E7%89%88%2F20%E8%AF%9D%2F1.jpg-zymk.middle.webp can find that the "http://mhpic.xiaomingtaiji.net/comic/"" in front of the URL and the ".jpg-zymk.middle.webp" behind it are the same, so it's time to find the middle value.

Try to search for picture elements

Found a js file, open the search

There is a doubt here, isn't this the field in html, so "i.getPicUrl (e)" is the value of the URL of that picture?

At the next breakpoint here, you go.

Sure enough, this is the cut-in point of the URL generation of that picture. Now is to look at the call stack, find the starting point of this function, and click "e.init" on the right. There is a setInitData function. From the name, it should be the place where the initial data is set. Here is the next breakpoint. Go in and have a look.

Here is a this.imgpath, this should be the URL value of the picture, click F10, and then step into the mode, come to the charcode function

Go in and have a look. This should be the encryption function.

Here step by step mode, don't worry, come here

Continue the single-step mode. When you open this VM file for the second time, "_ _ cr.imgpath" looks familiar.

Plain Text "L-:N-M >-A >-Amur murmuri I8 Mustang JMULI @ >-Mimi Mustang Mustang Mui @ >-M?-@A-@@-:N:8-M@-IN-AL-:N"

Open the source code of the page, right here, there is not only the URL encryption value of the picture, but also other data, which are used in the URL stitching of the image later.

Now let's take a look at the encryption function again. It simply iterates through each character of that encrypted value, obtains its Unicode value, performs a correlation operation with _ _ cr.chapter_id, and then returns characters from the resulting Unicode value.

Now we can imitate this algorithm with python.

Thank you for your reading, the above is the content of "Python and JS decryption how to crawl a certain audio roaming site data". After the study of this article, I believe you have a deeper understanding of how Python and JS decryption crawl a certain audio roaming website data, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report