Data Scraping On a web page list view and grid view

While Scraping the data from a web page(Flipkart, Amazon) my code works for the grid view ones(SINCE I DID SCRAPING FROM GRID VIEW PAGE) and fails for list view ones. How do I differentiate in my code for list view and grid view?
I am taking input from the user, depending on input the webpage could be either list or grid.

@Yoichi

Hi @Dimple_Mandal,

Can you try using screen scraping method for the list view?

It should work.

Also, you can refer details shared on this link:

Regards
Sonali

@sonaliaggarwal47 will this work for both list and grid. I am taking input from the user, so the window could be either list or grid.

Hi @Dimple_Mandal,

I haven’t tried this but I think it will not.

Data scraping is for structured data like tables etc.

Screen scraping is to scrape data from any other ui elements, I guess list would fall here.

You can try to create a flow wherein if list is inputted, go to screen scraping workflow else go to data scraping one.

Regards
Sonali