Scan a webpage and get the video embed url only
Question: I have a search engine on PHP that have indexed some movie sites., Now i want
to get the video embed url on a given web page URL . and put it in an iframe.
How will i get it ? using python? and integrate it in PHP ? but how will i
pass the url from php to python and use the beautifulsoup?

Here is what I'm trying now

    
    
    import BeautifulSoup
    
    html = '''http://www.kumby.com/avatar-the-last-airbender-book-3-chapter-5/'''
    soup = BeautifulSoup.BeautifulSoup(html)
    

I've googled, but have not found any good information about this (probably
because I don't know what this is called to search for), does anyone have any
experience with this and knows how it can be done?

Thanks!


Answer: 
    from bs4 import BeautifulSoup
    
    html = "http://www.kumby.com/avatar-the-last-airbender-book-3-chapter-5/"
    soup = BeautifulSoup(html)
    l = soup.findall("embed","object","param","video")
    for i in l:
      print i.string
    

