T
T
TestVDK2015-02-02 06:43:00
ruby
TestVDK, 2015-02-02 06:43:00

How to download video from online player (ruby or python)?

Hello.
I have video embed codes like
<iframe src='http://....'></iframe>
I want to upload video files to my computer.
I want to do this automatically, so solutions in ruby ​​or python are desirable.
Sites can be different, not only youtube, so reflections on this topic are also interesting, in which direction to look
Thank you

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergeyj, 2015-02-02
@sayber

You probably wanted to post some code, but didn't wrap it in code tags.

A
Alexey Shein, 2015-02-02
@conf

youtube-dl

S
Sergey Ivanov, 2015-02-02
@Writerim

Can also be done in bash

T
TestVDK, 2015-02-10
@TestVDK

eventually refused to download videos from arbitrary hosting. Youtube downloads fine ruby gem viddl-rb
from the link youtube.com/watch?v=grrthrt6jhrj you get a list of hashes containing video titles and links to video files that you need to download with the open-uri library.
If there are several videos of different quality on one Youtube video page, you can access all of them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question