1
1
- I use wget to save a webpage to a file 'annie.html'.
% wget -qO- http://www.swagbucks.com/watch/video/523803/annie > annie.html
- Inside this file is this line:
<div id="sbPlaylistVideoContainer" class="fullSize"></div>
- Question is: How do I get the actual code for this
<div>
element? If I right-click on the video in Chrome for this and click "Inspect element", I see the actual code.
It looks like this.
<video id="example_video_1_html5_api" class="vjs-tech" preload="none" src="blob:http%3A//www.swagbucks.com/096df37a-81fe-4c65-b082-0fe059254d6e" style=""><source src="http://progressive.totaleclips.com.edgesuite.net/137/e137013_257.mp4?eclipid=e137013&bitrateid=457&vendorid=1839&type=.mp4" type="video/mp4"></video>
Where did Chrome get this from? It does not exist in the webpage. I would like to get the proper 'wget' command syntax that will save this code to a file.
You've basically written what I wanted to post as an answer, except yours is more understandable. +1 from me for that reason. :) – LPChip – 2016-03-31T14:42:48.750