dr1992
December 16, 2022, 12:44pm
1
Hey,
I am trying to scrape these values (highlighted) from a data table on a website:
An issue I’m facing is that these values change (and so does the positioning) on the web page between different deals, but it is always the dealer fitted options. Therefore, depending on which page I access, the data table can often be blank, even if there are values.
I can’t seem to do anything to consistently get this data - does anyone have any suggestions? I feel like I’m going in circles aha.
Thanks a lot.
Anil_G
(Anil Gorthi)
December 17, 2022, 6:30am
2
@dr1992
Try data extraction with anchor base on the dealer fitted and make sure no table name or anything is present.
Alternately…you can try using for each ui element as well for this
Cheers
Hello @dr1992
Have you tried with Table extraction?
Thanks
dr1992
December 19, 2022, 8:34am
4
That’s what I’ve been trying to do
dr1992
December 19, 2022, 8:35am
5
The problem is that the selectors are inconsistent and keep changing
Anil_G
(Anil Gorthi)
December 19, 2022, 8:47am
6
@dr1992
If you can provide the site details we cna provide more info…else its difficult to give you a selector which might work…
Did you try using regex in the selectors to make them search multiple details or any variables
Cheers
dr1992
December 19, 2022, 9:00am
7
Unfortunately it is a private portal and so I wouldn’t be able to provide a link.
I didn’t try the latter, how would that method work?
Anil_G
(Anil Gorthi)
December 19, 2022, 9:10am
8
@dr1992
Please have a look
About RegEx Search A regular expression, or RegEx, is a special text string for describing a search pattern. This makes them ideally suited for searching, text processing, and data validation. Using the RegEx search capabilities in selectors enables...
A dynamic selector uses a variable or an argument as a property for the attribute of your target tag. This allows the selector to easily identify a target element based on the value of the variable or argument, and not an exact string, which might...
You can try using combinations of these as wel
Let me know if you find some trouble
Cheers