"Kill" one of the annoying advertisements in the video app through technical means (Tencent Video)

    Yesterday I published a video advertisement on how to remove the Youku APP. Everyone actively discussed whether to eliminate the advertisements and whether it would make the video website unable to survive. It shows that everyone is willing to think about others, which is a good thing. However, in fact, everyone is overthinking it. We are just acting as an agent to prevent the APP from processing advertisements as data. In fact, the advertisement data is still sent to the APP side, but it is not played. Besides, we have so little traffic that it is not worth mentioning.

 

    But again, our purpose is to communicate and learn about the use of Charles tools and share the experience of analyzing problems. Not for commercial use.

 

    Although I was afraid that the video website would not survive, I was still urging me to share how to remove the video advertisements of the Tencent Video APP as soon as possible, haha

 

Into the title:

 

The first thing to do is the trilogy mentioned earlier:

    The first step is to remove the system proxy (the system proxy is turned on by default), because this reduces the amount of data and facilitates our observation.

    The second step is to configure the SSL certificate, because some of the requests sent by many video apps are https.

    The third step is to configure the mobile proxy.

 

The above three steps are all in the previous Charles tutorial. For those who don't know it, go to the past and configure it according to the process. It supports Windows and Mac. After completion, you can follow my tutorial step by step to continue.

 

    Open the Tencent Video APP, at this time you will find that a bunch of requests have been intercepted by us, these are basically useless, all are cleared, and then choose a video at random, click to open, we have intercepted a bunch of requests, this time in the video The advertisement starts to play, OK, the captured data includes advertisement data. Then we will concentrate on these data, open and observe them one by one, the subsequent requests coming in are basically useless, and we will record the last position.

 

 

 

 

The method of analyzing Tencent Video requests is the same as that of Youku Video. Click on each request to watch it. Only the request of https://lives.l.qq.com has a lot of json data, which is more reliable.

 

 

Copy the json and put it in the json editor for viewing. Copy each url in the json to the browser to open it, you will find that the advertisement can be played directly in the browser. To prove that our judgment is correct, this request is a request to obtain an advertisement.

 

 

    每一个连接都看一遍后,比较庆幸的是,发现只有广告,并没有正片内容,它不像是优酷截取的数据那样,广告和正片是放到一个json数据里进行返回的。对优酷的广告进行过滤的时候需要对json进行内容的修改,因为不能影响正片的播放。

 

    所以对腾讯视频的广告进行过滤非常简单,只要把获取广告的这个请求URL屏蔽即可。怎么做呢?非常简单。

 

    还记得我们上一章讲的Map Remote吗?把htts://lives.l.qq.com/livemsg重定向到一个无效的地址即可,这样APP在获取广告数据的时候获取不到,为了容错直接跳过播放广告,直接去获取正片的数据进行播放了。

 

 
 

配置完成之后重新播放视频就会发现他不再播放广告了。哦也✌️,腾讯视频过滤广告完成。

如果发现有问题,欢迎关注博主,加入技术群,讨论你的问题,或者分享你的经验。

 

相关阅读:

如何通过技术手段 “干掉” 视频APP里讨厌的广告?

通过技术手段 “干掉” 视频APP里讨厌的广告之(腾讯视频)

抓包神器之Charles,常用功能都在这里了

 

推荐阅读:

2018,如何从小白升级到大牛程序员呢?

htt2.0的时代真的来了

如何站在巨人的肩膀上,将自己的产品赋予AI的能力?百度UNIT

 

学习分享:

深度机器学习56G视频资源分享

 

知识分享:现在是资源共享的时代,同样也是知识分享的时代,如果你觉得本文能学到知识,请把知识与别人分享


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326272871&siteId=291194637