The official website of Douyin has been opened. Different from the previous sharing page, the content is relatively rich.



The article is debugging logic, the end of the source code link different interface required environment is different, (point off, search video is not available, other can be used) any operational content has nothing to do with this article article content for reference only, if there is infringement, please contact the author to delete

1. JS stack debugging

The only encryption parameter in the interface currently is _signature.

Select Stack Debugging in XHR

Pick any breakpoint you want, and usually the first one is XMLHttpReQuetsSend.

N _signature in [1]



n = this.openArgs

this.openArgs = arguments,



Observe the url

Print o with _signature in it



Mouse status is detected, and mouse movement triggers DEBUG

I will debug it after triggering the request through the scroll wheel


See the details

https://blog.csdn.net/weixin_…


Sample collection of comments: