How can I scrap the value from web with the same position in loop?

How can I scrap the value from web with the same position loop? I can only receive the same value in a loop.

Example: Collect the rating of movie from the same position, but the rating would be changed by different movies.

thank you

Hi @Sanwa ,

In your selector change aaname value to “*”. If the position is same then on each page it will fetch the current page rating.

1 Like

Hi @manjula_rajendran ,

Thanks for your reply, I changed the aaname value to “*” but it turns out empty when I kept the data in the Excel…

My work-flow:
WHILE LOOP environment:

  1. Scrap data table from web in same position
  2. keep them in Excel
  3. Scarp another data table from web in same position

Can you share the webportal url? i can give you exact selector

Hi @manjula_rajendran,

Thanks for your reply, let’s take https://www.amazon.com/ as an example.

My workflow:


I will import a data table first,
then in while loop:

  1. Type input “hair clip” and use “data scraping” to get the first product name of the result.

  1. Get the name and save it to the excel
  2. Type input “hair gel” and use “data scraping” to get the first product name of the result.

  1. Get the name and save it to the excel
  2. The expected result:

I always get the same product name or empty name in the excel, how can I reach and get the expected result?

Thank you!

Hi @Sanwa ,

It is overriding the data. As you are looping inside and each time new data will override the old data. You can create a one more output datatable and after scraping the data merge the data to output datatable.

Here i attached the workflow.
AmazonScrap.xaml (17.5 KB)

Hope it will hep.

Thanks,
Manjula

1 Like

Hi @manjula_rajendran,

I tried you method but it turns out empty, is anything I did wrong?

AmazonScrap.xaml (17.3 KB)

Thankyou so much!!

Your workflow has some issue. I’m not able to open.

Download the attached my workflow and run.

AmazonScrap.xaml (17.5 KB)

I’ve attached the result for your reference.

result.xlsx (9.1 KB)

Hi @manjula_rajendran

Thanks for your patience, this is the result that I got.
May I know where is going wrong? Thankyou!!

amazon_result.xlsx (11.0 KB)

Hi @Sanwa,

Please check your input table.

I’m passing Hair Clip twice.

image

Hi @manjula_rajendran ,

Here is my input table:
ama1

Selector of attach browser:
ama2

Properties of Extract Structured Data:

Thank you for your help!!!

Hi @Sanwa ,

In attach browser selector change title=‘Amazon.in : Hair Clip’ to title=‘Amazon.in : *’

Attached your same workflow with modified. Please check it.

AmazonScrap_1.xaml (17.5 KB)

1 Like

Hi @manjula_rajendran ,

Thanks for your reply,

I have changed the selector to “*” but it still doesn’t work.

Here is my workflow:
AmazonScrap.xaml (17.5 KB)

My result:
AmazonResult.xlsx (9.3 KB)

Hi @Sanwa ,

Please try with this workflow
AmazonScrap.xaml (18.8 KB)

Here is output
AmazonResult.xlsx (10.4 KB)

1 Like

Hi @manjula_rajendran ,

Before I run your workflow, the only thing I need to changed is the Excel path?

Do I need to make the data scraping again? Since the images are not available.

Really thanks for your help.

no need to change anything…you can run directly. Excel path is also same.

Just run the flow