Skip to content

Instantly share code, notes, and snippets.

@BroVic
Last active April 27, 2018 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BroVic/b2e26f57691b09bbf2e85ed619413448 to your computer and use it in GitHub Desktop.
Save BroVic/b2e26f57691b09bbf2e85ed619413448 to your computer and use it in GitHub Desktop.
Quick download for course videos
# wk1-downloads
$wkVid1 = @("https://edx-video.net/PENPWJSX2017-V000500_DTH.mp4")
$vidNames = @("1.1-intro-www-internet.mp4")
$wkVid1 += "https://edx-video.net/PENPWJSX2017-V000500_DTH.mp4"
$vidNames += "1.2-how-webrowser-works.mp4"
$wkVid1 += "https://edx-video.net/PENPWJSX2017-V000100_DTH.mp4"
$vidNames += "1.3-intro-to-html.mp4"
$wkVid1 += "https://edx-video.net/PENPWJSX2017-V000600_DTH.mp4"
$vidNames += "1.4-basic-html.mp4"
$wkVid1 += "https://edx-video.net/PENPWJSX2017-V000400_DTH.mp4"
$vidNames += "1.5-html-formatting-and-attributes.mp4"
$wkVid1 += "https://edx-video.net/PENPWJSX2017-V001200_DTH.mp4"
$vidNames += "1.6-intro-to-css.mp4"
$wkVid1 += "https://edx-video.net/PENPWJSX2017-V001100_DTH.mp4"
$vidNames += "1.7-html-lists-and-forms.mp4"
$wkVid1 += "https://edx-video.net/PENPWJSX2017-V000300_DTH.mp4"
$vidNames += "1.8-html-links-images-and-tables.mp4"
$wkVid1 += "https://edx-video.net/PENPWJSX2017-V001000_DTH.mp4"
$vidNames += "1.9-responsive-web-design-bootstrap.mp4"
for ($i = 0; $i -lt $wkVid1.Length; $i++) {
$vid = $wkVid1[$i]
Start-BitsTransfer $vid
$tmp = Split-Path $vid -Leaf
Rename-Item $tmp -NewName $vidNames[$i]
}
# Examples
$exmpls = "https://courses.edx.org/asset-v1:PennX+SD4x+2T2017+type@asset+block/1.4-together.html",
"https://courses.edx.org/asset-v1:PennX+SD4x+2T2017+type@asset+block/1.5-classes.html",
"https://courses.edx.org/asset-v1:PennX+SD4x+2T2017+type@asset+block/1.7-form.html",
"https://courses.edx.org/asset-v1:PennX+SD4x+2T2017+type@asset+block/1.9-bootstrap.html"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment