emberavsyou-get
Embera is an Oembed consumer library written in PHP. It takes urls from a text and queries the matching service for information about the media and embeds the resulting html. It supports +150 sites, such as Youtube, Twitter, Livestream, Dailymotion, Instagram, Vimeo and many many more.
you-get is a command-line utility and a library for downloading multimedia content from various websites, such as YouTube, Instagram, TikTok, and many others. It supports a wide range of video and audio formats, and can be used to download both live streams and on-demand videos. The library is written in Python and can be easily integrated into other Python projects.
Just like Youtube-dl, you-get contains open-source scrapers for hundreds of websites and is a great tool to learn about web scraping and popular web scraping techniques.
Example Use
use Embera\Embera;
$embera = new Embera();
print_r($embera->getUrlData([
'https://vimeo.com/374131624',
'https://www.flickr.com/photos/bees/8597283706/in/photostream',
]));
// this will generate:
Array
(
[https://vimeo.com/374131624] => Array
(
[type] => video
[version] => 1.0
[provider_name] => Vimeo
[provider_url] => https://vimeo.com/
[title] => VACATION movie
[author_name] => Andrey Kasay
[author_url] => https://vimeo.com/andreykasay
[is_plus] => 0
[account_type] => basic
[html] => <iframe src="......."></iframe>
[width] => 426
[height] => 240
[duration] => 146
[description] => Остросюжетное кино про жизнь
[thumbnail_url] => https://i.vimeocdn.com/video/832478725_295x166.jpg
[thumbnail_width] => 295
[thumbnail_height] => 166
[thumbnail_url_with_play_button] => https://i.vimeocdn.com/......Fcrawler_play.png
[upload_date] => 2019-11-19 06:27:37
[video_id] => 374131624
[uri] => /videos/374131624
[embera_using_fake_response] => 0
[embera_provider_name] => Vimeo
)
[https://www.flickr.com/photos/bees/8597283706/in/photostream] => Array
(
[type] => photo
[flickr_type] => photo
[title] => Durumu
[author_name] => bees
[author_url] => https://www.flickr.com/photos/bees/
[width] => 1024
[height] => 723
[url] => https://live.staticflickr.com/8385/8597283706_7b51ea50b1_b.jpg
[web_page] => https://www.flickr.com/photos/bees/8597283706/
[thumbnail_url] => https://live.staticflickr.com/8385/8597283706_7b51ea50b1_q.jpg
[thumbnail_width] => 150
[thumbnail_height] => 150
[web_page_short_url] => https://flic.kr/p/e6HjVq
[license] => All Rights Reserved
[license_id] => 0
[html] => .........
[version] => 1.0
[cache_age] => 3600
[provider_name] => Flickr
[provider_url] => https://www.flickr.com/
[embera_using_fake_response] => 0
[embera_provider_name] => Flickr
[html_alternative] => ........
)
)
$ you-get 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
site: YouTube
title: Me at the zoo
stream:
- itag: 43
container: webm
quality: medium
size: 0.5 MiB (564215 bytes)
# download-with: you-get --itag=43 [URL]
Downloading Me at the zoo.webm ...
100% ( 0.5/ 0.5MB) ├██████████████████████████████████┤[1/1] 6 MB/s
Saving Me at the zoo.en.srt ... Done.
import you_get
# will save file to `output_video.mp4`
you_get.download("https://www.youtube.com/watch?v=dQw4w9WgXcQ", -o "output_video.mp4")