How to parse Javascript-generated tables in a headless R server?

05.10.2014
by Esa Turtiainen
tags: R Javascript HTML

Some sources where I want to read information easily using R have turned into Javascript tables. That means that the data what I am looking for is not available easily in the HTML source any more.

The old trick:

t = readHTMLTable("http://www.epexspot.com/en/market-data")
DE = t[[6 ...
lisää…

XSLT for parsing HTML? No, use R instead

18.03.2013
by Esa Turtiainen
tags: XSLT R

How to parse data from HTML?

I often have needed some values from a HTML page.

For example, we find out that there is the wanted information in the HTML table:

<h1>Here is the price</h1>
<table><tr><td>1.0</td></tr></table>

What I am looking for ...

lisää…