15-06-25 09:58 AM
I'm handling with a trouble that is:
i wanna scrap name and price of items from a website, but i don't know how to do it by multiple elements...
I know do it with Python, but not in Blue Prism.
Some one can help me please?
#webscraping #scrap
15-06-25 11:41 AM - edited 15-06-25 11:43 AM
Hi @Raphael_Sampaio.,
Extracting table data (such as item prices) from a website using Blue Prism can be a bit tricky, but it’s definitely doable by following these steps carefully:
Steps to Scrape Table Data in Blue Prism:
Let's assume the HTML path for the first cell is: /HTML[1]/BODY[1]/DIV[5]/DIV[1]/TABLE[1]/TBODY[1]/TR[1]/TD[2]
Assumed HTML path: /HTML[1]/BODY[1]/DIV[5]/DIV[1]/TABLE[1]/TBODY[1]/TR[2]/TD[2]
Loop to extract values
Create a Collection to store the item prices.
In a loop:
- Use a Get Text action to read the value from the dynamic element (using the current counter value).
- Use Add Row and assign the retrieved value to the collection.
- Increment the counter and repeat the process for the next row.
You can also check out this thread for additional help: https://community.blueprism.com/t5/Product-Forum/how-to-read-a-table/td-p/86567
For a deeper understanding of browser automation in Blue Prism, I recommend reviewing this course: https://university.blueprism.com/courses?entry=110248§ion=courses
Kindly let me know if you need more help on this. If you found this answer helpful, please mark this as Best Answer.