A have been checking out a recent application called Scrapblog and looking under the hood at how the put the application together. I know they use XML to markup the coordinates and properties of media elements on the page. What surprised me was that they take a Bitmap image of each slide and save that as a single JPEG file when you publish your Scrapblog. I had just assumed they copy images from Flickr to the server and referenced those images in the published content. I even thought they might dynamically link the images from Flickr. I did notice though, that Scrapblog links to Youtube videos dynamically.
They are obviously not using the Youtube API because Youtube blew that up by changing making a security policy change to the crossdomain.xml file needed to pull videos into Flex. So I did a little investigation. I found a site, in French, that had a Flash 8 application to basically screen scrape and decode the URL to Youtube videos. I migrated this over to Flex and created a small demo application.
I don’t think this is the most practical approach to grabbing Youtube videos and I am not entirely sure this is the only method, I wanted to put the application out there for comments and suggestions. Another suggested solution was to use the BrightCove API. Here is my first attempt at the grabber using screen scraping:
Youtube Grabber (right-click to see source)
Update:
I found an excellent blog post similar to mine, although posted sooner and works better. Check out YouTube FLV URL post by Abdul. This one works great for getting the URL to Youtube videos. Here is a link to a new updated example file and source:


7 Comments
Michael,
If you really want to look under the hood of Scrapblog, how about talking to us about working here. :)
We are looking for talented Flex developers.
You mean you are not just going to give me all of your code for free :). Great product, my respect goes out to your talented team.
Downloading YouTube files
You can also use this site, which is pretty easy:
http://keepvid.com
Save the FLV file to your desktop and then you can use a free program called CinemaForge to convert to avi, wmv, mpeg, mov, etc.
http://tinyurl.com/caqql
(the free version of the program is all you need)
Well, what you suggest is one way to get a FLV. However, the purpose I was shooting for was to actually get a FLV into Flex real time. But thanks for the information.
Download Youtube files
another youtube video grabber. already tested. link : http://rapidshare.com/files/68457366/Youtube_Google_Video_Grabber.rar
Interesting points on screen scrapers, For simple stuff i use python to web crawl, but for larger projects i used http://www.extractingdata.com/screen%20scraper.htm which worked great, they build quick custom screen scraper and web scraper programs
One Trackback
[...] 2 ? Flex Youtube Grabber [...]