option 1: CTRL S / Save webpage HTML to PC - use Power Query to extract data from text (without navigating CSS)
option 2: Power Automate Desktop
Remember what they said about Power Query
Power Query is powerful they said
Power Query can do lots of stuff they said
Power Query will build the code for you they said
Power Query is easy they said
I was able to extract data from the link in under 3 minutes
(after tinkering for 15 minutes and inserting a wait statement)
Power Automate Desktop will also step through the web pages of the link
Think of the following as Power Automate Desktop's "M-code"
Code:
WebAutomation.LaunchFirefox.LaunchFirefox
Url: $'''https://fcra2010.in/ngos-raising-over-a-crore-of-fc-annually/'''
WindowState: WebAutomation.BrowserWindowState.Maximized
ClearCache: False
ClearCookies: False Timeout:
60 BrowserInstance=> Browser
WAIT 20
WebAutomation.ExtractData.ExtractTableInExcel
BrowserInstance: Browser Control:
$'''html > body > div > div > div > div > main > article > div > div > div >
section:eq(2) > div > div > div > div > div > div > table > tbody > tr'''
ExtractionParameters: {
[$'''td:eq(0)''', $'''Own Text''', $'''''', $'''Value #1'''],
[$'''td:eq(1)''', $'''Own Text''', $'''''', $'''Value #2'''],
[$'''td:eq(3)''', $'''Own Text''', $'''''', $'''Value #3'''] }
ExcelInstance=> ExcelInstance
Excel.CloseExcel.CloseAndSaveAs
Instance: ExcelInstance
DocumentFormat: Excel.ExcelFormat.FromExtension
DocumentPath: $'''c:\\temp\\trashme.xlsm'''
Bookmarks