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 7623215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:39:02+00:00 2026-05-31T04:39:02+00:00

I would like to web-scrape the html source code of java-script pages that I

  • 0

I would like to web-scrape the html source code of java-script pages that I can´t access without selecting one option in a drop-down list and, after, ‘clicking’ on links. Spite of not been in java, a simple example can be this:

Web-scrape the main wikipedia pages in all languages available in the drop-down list in the bottom of this url: http://www.wikipedia.org/

To do so, I need to select one language, English for example, and then ‘click’ in the ‘Main Page’ link in the left of the new url (http://en.wikipedia.org/wiki/Special:Search?search=&go=Go).

After this step, I would scrape the html source code of the wikipedia main page in English.

Is there any way to do this using R? I have already tried RCurl and XML packages, but it does not work well with the javascript page.

If it is not possible with R, could anyone tell me how to do this with python?

  • 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-31T04:39:03+00:00Added an answer on May 31, 2026 at 4:39 am

    It’s possible to do this using python with the selenium package. There are some useful examples here. I found it helpful to install Firebug so that I could identify elements on the page. There is also a Selenium Firefox plugin with an interactive window that can help too.

    import sys
    import selenium
    from selenium import webdriver
    from selenium.webdriver.common.keys import Keys   
    
    driver = webdriver.Firefox()
    driver.get("http://website.aspx")    
    
    elem = driver.find_element_by_id("ctl00_ctl00")
    elem.send_keys( '15' )
    elem.send_keys( Keys.RETURN )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there any way I can scrape web pages that uses AJAX ? by
I would like a web application to learn things about its environment so that
I would like create a web service in ASP.Net 2.0 that will supports JSON.
I'm programming in PHP and would like to create web pages which have email
I would like to visually evaluate web pages response time for several Internet connections
We would like to implement a web form that automatically saves content at regular
I would like to test a web app that was drastically redesigned to use
I'm building a web app where users can build custom web pages that pull
We would like to load web pages in the background of an iPhone app.
I would like to upgrade my web projects on an IIS 5 server from

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.