Hello,
Recently I am doing my web data scraping project in UiPath. Actually my project is getting input (i.e) product name from the user using input dialog box and using use browser activity I will open my target website (i.e) Amazon. using Type into activity it will type the product name automatically in the search bar of amazon website and it will automatically click enter. once the product is searched then it will extract the name and price of the product.
My Problem is I want to extract the product data which the user is entered at the first. since
the extract table data is predefined to a single product it is not extracting the undefined product values.
For Example
If I have predefined the apple i phone product in the extract table data , if again i entered samsung s20 means it is not extracting.
I want my bot to extract the Product data which the user is entering.
Hi @THASARATHA_PRANAV_K
Welcome to the community!
Probably what can be done here is:
- Login to the Website.
- Search for the product name you want from the user input box
- Do a Data scraping after searching the product name
- Filter the records in the Datatable with product name you wanted using Contains Function.
- use the filtered excel as per your convince.
Note: Its important to research the product name again in the website and execute the data scraping again when page loaded probably use it in a loop to do so, as the data scraping works on the pattern of the elements and will not give you an issue if the product name is changed.
Thanks
Bishwajeet
But I need a solution to extract any data which I get from the user. is there any modification has to done in the extract table data or I have to write any code in the selector tool.
only table extraction will work for you, just you have to build the logic inside a loop to search the data again and do the scraping again and it will work, you don’t have to change the selectors of the table extraction
Just modify the attach browser selector using wild cards to make it dynamic irrespective to the product name.
that should work
Can I get any work flow or simple project which is related to my query.
Sure I will help you with that, most probably today at night I will be creating it for you and send it to you. Will that work ?
Thanks a lot for that, you can send that any time.
Attaching the Workflow Zip for your reference
DataScraping.zip (14.0 KB)
I have done this for flipkart mobiles you can change it as per your needs, Let me know if this solves your problem.
Run the workflow and see the output excel on the project folder Mobile.xlsx.
Thanks
Biswajeet
Did you check the workflow and was that helpful to you?
If yes can you please mark it as as solution
Thanks
Bishwajeet Kumar
Here I am attaching my project . please make necessary changes to extract a dynamic product data. I am going through on your project once I got clear I will let you know.
BlankProcess.zip (20.0 KB)
phone amazon.xlsx (8.2 KB)
phone flipkart.xlsx (8.1 KB)