markdown 下载egghead视频

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 下载egghead视频相关的知识,希望对你有一定的参考价值。

# Download videos from egghead

Go to the egghead website, i.e. [Building a React.js App](https://egghead.io/series/build-your-first-react-js-application?order=asc&page=1)

run 

```js
$.each($('h4 a'), function(index, video){
  console.log(video.href);
});
```

You will get the following list

```text
https://egghead.io/lessons/react-building-a-react-js-app-notetaker-introduction
https://egghead.io/lessons/react-building-a-react-js-app-up-and-running-with-react-and-webpack
https://egghead.io/lessons/react-building-a-react-js-app-basic-routing-with-react-router
https://egghead.io/lessons/react-building-a-react-js-app-state-props-and-thinking-in-react
https://egghead.io/lessons/react-building-a-react-js-app-component-validation-with-proptypes
https://egghead.io/lessons/react-building-a-react-js-app-using-reactfire-to-add-data-persistence
https://egghead.io/lessons/react-building-a-react-js-app-managing-state-in-child-components
https://egghead.io/lessons/react-building-a-react-js-app-transitions-with-react-router
https://egghead.io/lessons/react-building-a-react-js-app-making-server-requests-in-react-with-axios
https://egghead.io/lessons/react-building-a-react-js-app-rendering-a-ui-of-dynamic-data
https://egghead.io/lessons/react-building-a-react-js-app-componentwillreceiveprops-and-react-router
https://egghead.io/lessons/react-building-a-react-js-app-es6-refactor-non-components
https://egghead.io/lessons/react-building-a-react-js-app-es6-refactor-createclass-to-javascript-classes-and-proptypes
https://egghead.io/lessons/react-building-a-react-js-app-es6-refactor-proptypes-in-es6
https://egghead.io/lessons/react-building-a-react-js-app-es6-refactor-routing-without-mixins
https://egghead.io/lessons/react-building-a-react-js-app-es6-refactor-firebase-and-react-binding-with-re-base
```

Steps:

1. Save as list.txt

2. `brew install youtube-dl`

3. `youtube-dl -a list.txt`


Run this rename script to get rid of the [Mojibake](https://en.wikipedia.org/wiki/Mojibake)

```bash
for i in *mp4; do
   mv "$i" "`echo $i | sed "s/#.*//"`"'.mp4';
done
```

以上是关于markdown 下载egghead视频的主要内容,如果未能解决你的问题,请参考以下文章

markdown 答:Vue.js(Egghead)

markdown @ ngrx / store综合介绍 - Egghead.io系列的同伴

markdown @ ngrx / store综合介绍 - Egghead.io系列的同伴

markdown @ ngrx / store综合介绍 - Egghead.io系列的同伴

Environment Setup egghead.io教程?

markdown 用youtube-dl下载Udemy视频