Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6943811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:12:17+00:00 2026-05-27T13:12:17+00:00

I am trying to get youtube links embedded in a webpage. When I retrieve

  • 0

I am trying to get youtube links embedded in a webpage. When I retrieve the page using urllib2 I don’t see the link in the response. I think the embedded video is retrieved by a script on the page which gets loaded when I use a browser. How do I get the same using python’s urllib2 ?

A sample webpage is http://busymovies.appspot.com/News.html?id=2965032

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:12:18+00:00Added an answer on May 27, 2026 at 1:12 pm

    To extract dynamically generated (with javascript) content you could use selenium:

    #!/usr/bin/env python
    from contextlib import closing
    from selenium.webdriver import Firefox # pip install selenium
    
    url = "http://busymovies.appspot.com/News.html?id=2965032"
    
    # use firefox to get page with javascript generated content
    with closing(Firefox()) as browser:
        browser.get(url)
        link = browser.find_element_by_link_text("Direct Link")
        print link.get_attribute("href")
    

    Output

    http://www.youtube.com/v/nLJYkat4HpE&hl=en_US&feature=player_embedded&version=3
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get youtube videos to be automatically embedded into a webpage.
I'm trying to launch embedded Youtube videos from a UIWebView, but get this error
Using a Youtube Channel how do I parse the $link variable and get the
I am trying to get the same effect as this site (I don't think
Using jQuery and YouTube api. I've been trying for a while to simply get
I'm trying to get the following functionality: Embed a youtube video into a webpage
I'm trying to get the youtube as3 chromeless player to work. I have followed
I'm trying to get the video data from this youtube playlist feed and add
I'm trying get values from a GridView using the following code: foreach (GridViewRow row
Trying to get parameters from a PUT request using HttpServlet#doPut: public void doPut(HttpServletRequest request,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.