I have a simple Google Spreadsheet's question. I'm attempting to pull in a table and am not having luck with ImportHTML, it will only pull the first top cell and duplicates it somehow. I also tried ImportXML, using XPath Helper to get the proper XPath, and it will not load the proper table data either.
Google Doc:
https://docs.google.com/spreadsheets/d/1-toAivOhywZuErHK0LB5EADiMu_T9ZNUTgMhqFRBHOU/edit?usp=sharing
What I'm needing is the bottom table(id='player_gbs') on the following site:
http://www.forge-db.com/us/us18/players/profile/?server=us18&world=Sinerania&id=12497
Here is what I've tried so far, this is all represented in the GDoc as well.
=ImportHTML(B1, "table", 2)
Returns the following line twice: "Great Building Era Lvl FP Req. FP FP Left 24h +"
=ImportXML(B1, "/html/body/div[@class='wrap']/div[@class='content'][2]/div[@class='b-box']")
Returns:
"GB's with a new level in the last 24 hours are shown with a yellow background" Great BuildingEraLvlFPReq. FPFP Left24h +Great BuildingEraLvlFPReq. FPFP Left24h +"
Thinking the issue is that contained in the /div is <thead> and <tfoot> before <tbody>
so I tried this XPath and just get N/A:
=ImportXML(B1, "/html/body/div[@class='wrap']/div[@class='content'][2]/div[@class='b-box']/div[@id='player_gbs_wrapper']/table[@id='player_gbs']/tbody")