Obtaining list of videos from a youtube playlist with Stankins
Because Stankins has a parser to html, you can have this kind of macro
#see all href
Stankins.HTML.ReceiverHtmlAHref file=https://www.youtube.com/playlist?list=PL4aSKgR4yk4OnmJW6PlBuDOXdYk6zTGps
#retain href column
StankinsObjects.FilterRetainColumnDataContains namecolumn=href stringToHave=PL4aSKgR4yk4OnmJW6PlBuDOXdYk6zTGps
#retain just videos which title contains 5Min
StankinsObjects.FilterRetainColumnDataContains namecolumn=a_text stringToHave=5Min
#remove column a_html
StankinsObjects.FilterRemoveColumn namecolumn=a_html
#transform column to li a href
StankinsObjects.TransformerAddColumnExpressionByTable expression=”‘<li><a href=’+ href+’>’ + a_text+'</a></li>'” newcolumnname=test nametable=TableLinks
#remove column href
StankinsObjects.FilterRemoveColumn namecolumn=href
#remove column a_text
StankinsObjects.FilterRemoveColumn namecolumn=a_text
The demo is at
https://azurestankins.azurewebsites.net/recipe/youtubeplaylist
Leave a Reply