I want to get the complete list of all the URLs
generated for the YouTube playlist from website whose link structure looks like:
<table class="table" id="ListVideo">
<tbody>
<tr>
<th scope="row">1</th>
<td><img style="height: 55px;width: 90px;" src="http://img.youtube.com/vi/mHpvT1P_OAM/default.jpg"></td>
<td>Android Development for Beginner: Brief Overview Of Android</td>
<td>
<div id="Download-mHpvT1P_OAM" link="https://redirector.googlevideo.com/videoplayback?api=youtubemultidownloader.com&mn=sn-p5qlsnz6&signature=B2C601E05D43FADDDDDC595B25F3A77E4CF24FB9.96E1AB91173820178049E0402A3F48E29086AEBB&mime=video%2Fmp4&mt=1492516586&dur=182.415&id=o-AIjyKLM2gc2g7w9RB0izMEVqvaTbIxAJ9iTa0tQakpAb&key=yt6&ip=66.249.83.29&mm=31&mv=m&pl=28&ipbits=0&ms=au&sparams=dur%2Cei%2Cid%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&expire=1492538256&lmt=1486569580323751&ratebypass=yes&source=youtube&upn=P2VOmq_LKgk&itag=22&requiressl=yes&ei=MP_1WLKeBuKF8gTh35WgDQ&title=01.Android%20Development%20for%20Beginner%3A%20Brief%20Overview%20Of%20Android"><a download="" href="https://redirector.googlevideo.com/videoplayback?api=youtubemultidownloader.com&mn=sn-p5qlsnz6&signature=B2C601E05D43FADDDDDC595B25F3A77E4CF24FB9.96E1AB91173820178049E0402A3F48E29086AEBB&mime=video%2Fmp4&mt=1492516586&dur=182.415&id=o-AIjyKLM2gc2g7w9RB0izMEVqvaTbIxAJ9iTa0tQakpAb&key=yt6&ip=66.249.83.29&mm=31&mv=m&pl=28&ipbits=0&ms=au&sparams=dur%2Cei%2Cid%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&expire=1492538256&lmt=1486569580323751&ratebypass=yes&source=youtube&upn=P2VOmq_LKgk&itag=22&requiressl=yes&ei=MP_1WLKeBuKF8gTh35WgDQ&title=01.Android%20Development%20for%20Beginner%3A%20Brief%20Overview%20Of%20Android&title=01.Android%20Development%20for%20Beginner%3A%20Brief%20Overview%20Of%20Android"
class="btn btn-default" type="button">MP4 720P</a> </div>
</td>
</tr>
.
. and so on
.
.
</tbody>
</table>
I am able to get the individual hrefs from a tag
using
console.log($("#ListVideo td div a").attr("href"))
which gives me link
https://redirector.googlevideo.com/videoplayback...0Brief%20Overview%20Of%20Android
I want
but when I try to loop through all the links with below function
$("#ListVideo td div a").each(()=> {console.log($(this).attr("href"))})
instead I get undefined. Here is the JSfiddle link with the complete page source from which I want to get links. Can someone please tell me where am I going wrong. Thanks