Skip to content

Instantly share code, notes, and snippets.

@l1997i
Created April 28, 2020 05:08
Show Gist options
  • Select an option

  • Save l1997i/06ec4d93588c9a61ba6f89ed6985d046 to your computer and use it in GitHub Desktop.

Select an option

Save l1997i/06ec4d93588c9a61ba6f89ed6985d046 to your computer and use it in GitHub Desktop.

Download Youtube

Download a single file

youtube-dl --proxy "https://127.0.0.1:1080" --no-playlist "https://www.youtube.com/watch?v=EAJoRA0KX7I&list=PLoROMvodv4rOhcuXMZkNm7j3fVwBBY42z&index=11"

Download all files in a playlist

youtube-dl --proxy "https://127.0.0.1:1080" --socket-timeout 60000 -o '%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' "https://www.youtube.com/watch?v=8rXD5-xhemo&list=PLoROMvodv4rOhcuXMZkNm7j3fVwBBY42z"

Set timeout

--socket-timeout 60000

Download Coursera

coursera-dl -u [email protected] -p @Li854201@ -ca PZrEYNjqekIBQdSao90f_kiDk0MUrC6KaOfZE41LYO-QvVff7lSHZ8VzHeul1lVFwfSLvs8o204J5ppXgbfx6A.tF9e0mfJOCdwRE77tJHi9w.vx-_5VWJLXq0JUQigJykd3NaQ802GyA7WR-XrXzGFuKIcl3wfLPHV_rb1drFKsgfs4rOjP6iXRXp6QNfH4kQCfNR1bu-wAjj1hvj0wGzqy2Vi6O1MOGDS2jsRGL3KZgLtueMhOriuL5vMSecDhCNP_a3o3QxS6vKo-CIu_GLAZI machine-learning

Notes

  • -ca: For caches, Use Chrome: Settings --> Privacy and security --> Site Settings --> Cookies and site data --> All cookies and site data --> coursera.org

Find content

  • You can also type chrome://settings/cookies/detail?site=coursera.org in textbox in Chrome to get -ca content.

Youget

you-get --x "https://127.0.0.1:1080" "https://www.youtube.com/watch?v=8rXD5-xhemo&list=PLoROMvodv4rOhcuXMZkNm7j3fVwBBY42z"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment