https://github.com/timsutton/pyvideo-urlgrabber
Script to print out video URLs from http://pyvideo.org
https://github.com/timsutton/pyvideo-urlgrabber
Last synced: 4 months ago
JSON representation
Script to print out video URLs from http://pyvideo.org
- Host: GitHub
- URL: https://github.com/timsutton/pyvideo-urlgrabber
- Owner: timsutton
- License: mit
- Created: 2014-04-17T15:12:05.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-17T20:06:01.000Z (about 10 years ago)
- Last Synced: 2025-02-25T00:58:13.680Z (4 months ago)
- Language: Python
- Size: 145 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pyvideo-urlgrabber
==================This is a very basic script that parses the metadata on http://pyvideo.org for the source video URLs, and prints them to stdout.
Use it like this:
```bash
./pyvideo-urlgrabber.py --category "PyCon US 2014"http://www.youtube.com/watch?v=GeQt7CxzmPo
http://www.youtube.com/watch?v=nAqklQ4wzhY
http://www.youtube.com/watch?v=SBQB_yS2K4M
http://www.youtube.com/watch?v=Kdrp1Kt1dSw
[...]
```The idea is to then feed these URLs into other purpose-built tools. For example, feeding these to [youtube-dl](http://rg3.github.io/youtube-dl/):
```bash
./pyvideo-urlgrabber.py -s "Guido van Rossum" -c "PyCon US 2015" | xargs youtube-dl --get-title
Keynote - Guido van Rossum - PyCon 2015
Type Hints - Guido van Rossum - PyCon 2015./pyvideo-urlgrabber.py -s "Guido van Rossum" -c "PyCon US 2015" | xargs youtube-dl --title
[youtube] G-uKNd5TSBw: Downloading webpage
[youtube] G-uKNd5TSBw: Extracting video information
[youtube] G-uKNd5TSBw: Downloading DASH manifest
[download] Destination: Keynote - Guido van Rossum - PyCon 2015-G-uKNd5TSBw.mp4
[download] 100% of 227.70MiB in 00:05
[youtube] 2wDvzy6Hgxg: Downloading webpage
[youtube] 2wDvzy6Hgxg: Extracting video information
[youtube] 2wDvzy6Hgxg: Downloading DASH manifest
[download] Destination: Type Hints - Guido van Rossum - PyCon 2015-2wDvzy6Hgxg.mp4
[download] 100% of 323.68MiB in 00:06
```
Run it with `--help` for more details.The first run will take a while, as it builds a cache of all the JSON metadata available on the site. There are currently over 2000 videos, resulting in a cache of around 4MB. This data is saved to a local cache file that must be manually rebuilt (using the `-r` option) to pick up new changes.
In addition to being able to filter to a specific category, you can also filter by a speaker name or video file type.