webscraping

CODAP Forums CODAP Help Forum webscraping

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #551 Score: 0
    Joachim Engel
    Participant

    How can I import a data table I find on a website?

    In the past, I remember having success in webscraping before (sometimes it worked, sometimes it didn’t); but now I seem to have forgotten how it works.

    Joachim Engel

    #552
    Jonathan Sandoe
    Keymaster

    Hi Joachim,

    There is a CODAP plugin to facilitate simple Web Scraping, the awkwardly named “Drop HTML Table” plugin. You drag the plugin into your CODAP document. In another browser page, select the table that you want to scrape and copy it. (Control-C on windows, Command-C on macs) Then, paste it into the designated window in the plugin. You should see the contents of any table that the plugin could find. You can pick the ones you want and import into CODAP.

    The plugin may or may not be able to identify tabular data in the HTML fragment that you paste. This depends on the structure of the HTML in the original page. Sometimes the structure doesn’t match any of the patterns that the plugin recognizes.

    Jonathan

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.