首先打开一片含有视频的微信公众号文章,比如→这篇文章,打开之后,右键查看源代码。找到iframe包含的一段视频代码。
<span class="html-tag"><iframe <span class="html-attribute-name">class</span>="<span class="html-attribute-value">video_iframe</span>" <span class="html-attribute-name">height</span>="<span class="html-attribute-value">502.5</span>" <span class="html-attribute-name">width</span>="<span class="html-attribute-value">670</span>" <span class="html-attribute-name">frameborder</span>="<span class="html-attribute-value">0</span>" <span class="html-attribute-name">data-src</span>="<span class="html-attribute-value">https://v.qq.com/iframe/player.html?vid=u0183p8yy64&width=670&height=502.5.5.5.5.5.5.5.5.5.5.5&auto=0</span>" <span class="html-attribute-name">allowfullscreen</span>="" <span class="html-attribute-name">scrolling</span>="<span class="html-attribute-value">no</span>" <span class="html-attribute-name">style</span>="<span class="html-attribute-value">max-width: 100%; display: block; z-index: 1; overflow: hidden; box-sizing: border-box !important; word-wrap: break-word !important; width: 670px !important; height: 502.5px !important;</span>"></span><span class="html-tag"></iframe>
将其中 https://v.qq.com/iframe/player.html?vid=u0183p8yy64 拷贝出来,然后到一个网站 http://www.flvurl.cn/ 对其进行解析。将上述地址解析出来,得到几个真实的视频下载地址,如图:
选择其中一个,复制其地址,粘贴到chrome浏览器,播放,然后用一个chrome插件Flash Video Downloder就可以下载这段视频了。
下载完毕将其上传到优酷即可。