Domenico Vistocco
Domenico Vistocco

Reputation: 11

How to scrape data from an ajax web page using R?

I would like to extract data from this web page using R:

I guess the web page is loaded via server using Ajax or something similar. Moreover I would like to save also the data available on the following pages, the ones that I can see when I press the NEXT button at the bottom of the data table.

Thanks a lot for any tips. domenico

Upvotes: 1

Views: 1407

Answers (1)

Oliver Keyes
Oliver Keyes

Reputation: 3294

It appears to be generated using a JavaScript blob. You could look at rvest, which is an R library for just this problem (web scraping). If that doesn't work, RCUrl's GetURL function definitely grabs the script contents (although it's ugly as sin and you'll be wanting to grep it. Mind you, all automatically generated HTML is ugly).

Upvotes: 1

Related Questions