Is there any library to find out the urls of the embedded flvs in a webpage?
I am trying to write a script that can download videos automatically. The web pages look like dota.sgamer.com/Video/Detail/402 and www.wfbrood.com/movie/spl2009/movie_38214.html, they have a flv player built into the flash plugin. Is there a library to help me find out the exact urls? or any other ideas to get it?
Thanks a lot for your answers
a source to share
Looks like Flashticle (4th result when searching in a cheese store for "flash"), maybe be able to get the information you want, if there is one.
As far as getting the file goes, you want to look at the html parser. I've heard well about Beautiful Soup . Between that and urllib2 (part of the standard library) you should be able to load the swf file to work.
Note that I've never tried this, and I'm not familiar with flash at all (except of course, of course).
a source to share
if the built-in player uses some variable where the flv path is set, you can load it if not. I doubt you will find anything to do "automatically" as each site makes it its own player and identifies the file by id not in the path, making it difficult to determine where the flv file is.
a source to share