Hi I'm trying to grab this webpage and store it into a table... any table. I'm using Google script.
var fetchString="http://www.airchina.com.cn/www/en/html/index/ir/traffic/"
var response = UrlFetchApp.fetch(fetchString);
I need some help on the code to get this started. I'm looking to grab the "Traffic Data" table. I would like to put it into an 2D array if possible.
Google provides a XML parsing/manipulating service. You can use this to parse the html that is in that table.
One note, if you investigate where that html is actually coming from, you'll see that it's actually coming from a different url. http://www.airchina.com.cn/www/jsp/airlines_operating_data/exlshow_en.jsp
So here's what I got for you. It works pretty well. Hopefully this is enough of a start for you.