Noob-Botier 1 Posted August 1, 2019 Report Share Posted August 1, 2019 I just installed exbrowser last week, been struggling with the exbrowser scrape table command and the xpath. Ive watched all the youtube tutorials. Ive seen single element scrape and a list but not a table and cant seem to make it go. Here is my stripped down script. Can someone please help? Ive come to understand xpath expressions for single and list elements but the table has me in a conundrum: plugin command("ExBrowser.dll", "ExBrowser CleanUp", "No")plugin command("ExBrowser.dll", "ExBrowser Launcher", "Chrome", "", "")plugin command("ExBrowser.dll", "ExBrowser Navigate", "https://www.reuters.com/finance/stocks/financial-highlights/INTC")plugin command("ExBrowser.dll", "ExBrowser Scrape Table", "x://table[@class=\"dataTable\"]", &eps, "InnerText") with of course that last line being the trouble. I get an error: the index was outside the bounds of the array. Im trying to scrape the first table, the one with a heading "Earnings Per Share**" Any suggestions would be greatly appreciated. Quote Link to post Share on other sites
Bot-Factory 602 Posted August 5, 2019 Report Share Posted August 5, 2019 I just installed exbrowser last week, been struggling with the exbrowser scrape table command and the xpath. Ive watched all the youtube tutorials. Ive seen single element scrape and a list but not a table and cant seem to make it go. Here is my stripped down script. Can someone please help? Ive come to understand xpath expressions for single and list elements but the table has me in a conundrum: plugin command("ExBrowser.dll", "ExBrowser CleanUp", "No")plugin command("ExBrowser.dll", "ExBrowser Launcher", "Chrome", "", "")plugin command("ExBrowser.dll", "ExBrowser Navigate", "https://www.reuters.com/finance/stocks/financial-highlights/INTC")plugin command("ExBrowser.dll", "ExBrowser Scrape Table", "x://table[@class=\"dataTable\"]", &eps, "InnerText") with of course that last line being the trouble. I get an error: the index was outside the bounds of the array. Im trying to scrape the first table, the one with a heading "Earnings Per Share**" Any suggestions would be greatly appreciated. The xpath expression is way to broad. Run and element count on that xpath expression and check if the result is only 1. If it's more than 1 you found the problem.Xpath expressions need to be unique (only 1 match). Otherwise you never know what html code you target with a command or function. CheersDan Quote Link to post Share on other sites
Bot-Factory 602 Posted August 7, 2019 Report Share Posted August 7, 2019 Hi Chris, wrote you a reply to your support ticket. Not sure if you saw it already. Dan Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.