Hello everyone,
I want to use ui path scraping data activity to extract data from a website and fill an excel sheet
the web table keeps getting new data and some data might disappear at a time.
I want to update the excel with new data continuesly without deleting the disappearing data from the website.
Here is what I’ve built:
Open web browser
Data scraping (Create variable ExtractdataTable)
Write range activity from website in excel
Read Excel (Create variable ExtractdataTable)
If:
ExtractDataTable.AsEnumerable().Any(Function(y) String.Join(“”, y.ItemArray) = String.Join(“”, currentRow.ItemArray) AndAlso currentRow.Table Is ExcelDataTable)
True: Do nothing
Else: Add Data Row
currentRow.ItemArray in ExclDataTable
Can you please advise what o have done wrong and if there is any other way to do this?
After extracting the data from a page copy the entire data from strict selector and then paste that data into the fuzzy selector so that when ever a new data is visible on the page then that data will be extracted and always the excel is updated with the new data and also don’t forget to change the targeting method from strict to fuzzy as highlighted below.
Remove the data from Strict Selector and Paste that data to Fuzzy selector in the Targets section. Change the Targeting Methods from Strict Selector to Fuzzy Selector.
After selecting the target point from where you want to extract data, you can open that selector and make changes in selector like passing asterisk or variable
And for append the content you can use “append range workbook” Activity