Flex Youtube Grabber

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:

Youtube Grabber 2 (right-click to see source)

This entry was posted in API, Flex and tagged , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.


7 Comments

  1. Posted April 27, 2007 at 11:32 am | Permalink

    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.

  2. Posted April 27, 2007 at 2:03 pm | Permalink

    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.

  3. Dfactor
    Posted April 30, 2007 at 7:54 am | Permalink

    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)

  4. Posted April 30, 2007 at 8:08 am | Permalink

    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.

  5. Sumsul
    Posted September 10, 2007 at 9:19 pm | Permalink

    Download Youtube files

  6. artlongs
    Posted November 22, 2007 at 11:37 pm | Permalink

    another youtube video grabber. already tested. link : http://rapidshare.com/files/68457366/Youtube_Google_Video_Grabber.rar

  7. Rachel
    Posted October 29, 2009 at 2:21 pm | Permalink

    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

  1. By MemoVideo Final ver. « LogField on April 9, 2009 at 5:53 am

    [...] 2 ? Flex Youtube Grabber [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> You may use these tags for ActionScript: [cc] [/cc]

Subscribe without commenting



  • Thanksmister on Twitter

    View Michael Ritchie's profile on LinkedIn