Created
March 14, 2018 15:04
-
-
Save GitHub30/567632382bcec0fa65bc625f58bbf1f7 to your computer and use it in GitHub Desktop.
YouTube URLs for Machine Learning Crash Course
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.youtube.com/watch?v=0mK52UsOj-U | |
https://www.youtube.com/watch?v=fMcjV8xwapk | |
https://www.youtube.com/watch?v=qAjFQLydY8E | |
https://www.youtube.com/watch?v=CaO0UDJirO4 | |
https://www.youtube.com/watch?v=DZ_uSRfJjM8 | |
https://www.youtube.com/watch?v=QsM-qYJoLME | |
https://www.youtube.com/watch?v=iqEr4Mc7P6o | |
https://www.youtube.com/watch?v=gvnn3HoPg-Y | |
https://www.youtube.com/watch?v=MiC5H_ASTGU | |
https://www.youtube.com/watch?v=JlkXvxwL2zE | |
https://www.youtube.com/watch?v=y0N-rSt_9gU | |
https://www.youtube.com/watch?v=u-_4S5l-Cuw | |
https://www.youtube.com/watch?v=uKSOY0yOHEQ | |
https://www.youtube.com/watch?v=l6MDlWF09QU | |
https://www.youtube.com/watch?v=a-L4qZ2Z6qc | |
https://www.youtube.com/watch?v=ysl2GR3q4mA | |
https://www.youtube.com/watch?v=-QGVDx6jOio | |
https://www.youtube.com/watch?v=rvt_Mv0IMok | |
https://www.youtube.com/watch?v=6rJczoXDtdk | |
https://www.youtube.com/watch?v=DicoYUAAcxI | |
https://www.youtube.com/watch?v=9ACa8hE4b-8 | |
https://www.youtube.com/watch?v=wUuVvwSgA34 | |
https://www.youtube.com/watch?v=3PVcV6yezBw | |
https://www.youtube.com/watch?v=Psyecv1A2C8 | |
https://www.youtube.com/watch?v=-G8m-GSLCF8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const puppeteer = require('puppeteer'); | |
(async () => { | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
await page.goto('https://developers.google.com/machine-learning/crash-course/ml-intro'); | |
const links = await page.$$eval('nav.devsite-section-nav a[href]', as => as.map(a => a.href)); | |
for(let link of links) { | |
await page.goto(link); | |
const videoIds = await page.$$eval('iframe[src^="https://www.youtube.com/embed/"]', iframes => iframes.map(iframe => new URL(iframe.src).pathname.slice(7))); | |
for(let videoId of videoIds) { | |
console.log('https://www.youtube.com/watch?v=' + videoId); | |
} | |
} | |
await browser.close(); | |
})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "mlcc", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"dependencies": { | |
"puppeteer": "^1.1.1" | |
}, | |
"devDependencies": {}, | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [ | |
"MLCC" | |
], | |
"author": "", | |
"license": "MIT" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install # or yarn | |
node index.js > $(date --iso-8601)_urls.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment