Web scraping with Google Apps Script
<p>I'm trying to pull data from the following sample web page using Google Apps Script: </p>

<p>url = <a href="http://www.premierleague.com/players/2064/Wayne-Rooney/stats?se=54" rel="noreferrer">http://www.premierleague.com/players/2064/Wayne-Rooney/stats?se=54</a></p>

<p>using, UrlFetchApp.Fetch(url)</p>

<p>The problem is when I use UrlFetchApp.Fetch(url) to do that, I don't get the page information defined by the 'se' parameter in the url. Instead, I get the information on the following URL because it looks like the 'se=54' page is asynchronously loaded:
<a href="http://www.premierleague.com/players/2064/Wayne-Rooney/stats" rel="noreferrer">http://www.premierleague.com/players/2064/Wayne-Rooney/stats</a></p>

<p>Is there any way to pass the parameter 'se' some other way? I was looking at the function and it allows the specification of 'options', as they are referred to, but the documentation on the topic is very limited.</p>

<p>Any help would be most appreciated. Many thanks</p>

<p>Tommy</p>