How can Fix this dynamic selector?


#1

i want to scrape a datatable using data scraping from the web page, that gives dynamic selector, so how can fix this problem.?


#2

First of all, the Data scraping method gives you a DataTable variable as an Output.

I must ask, why do you want to edit the selector? I mean, once you get the data you need from the website, what is the step that comes next? (I don’t get why would you need to edit the selector, so I can’t help you that much unless you provide me more information)


#3

Hi ecarles,
I want to scrape that data whose always change, when every time login.
That data not gives stable selector, so that why i want to make my selector dynamic.

Thanks & Regards
Bagish Ojha


#4

The thing is that you don’t need to change the selector from the data scraping, so don’t worry


#5

@ecarles Is right until that structure of the datatable you are scrapping does not change you do not need to update/edit the selector while scrapping the data. If the data changes dynamically no problem in that


#6

@bagishojha

Use UiExplorer for getting more information about the selector

Regards


#7

But I face a problem when I am running my program again, it doesn’t work.
@ecarles
@Himanshu.joshi
@prankurjoshi


#8

Okay Share your workflow or any specific scenario from where I reproduce what you are facing


#9

Hi,
This is my workflow
test.xaml (10.5 KB)
Thanks
Bagish


#10

And what is the data that you want to scrape? On that website?


#11

that what have i selected in the workflow


#12

I don’t see any images that is why not able to get what you want


#13

i need to make my selector dynamic.
Thanks
Bagish


#14

you have to put your dynamic selector inside of a browser attach or it won’t work

I hope you understand.

Bests,
Pablo


#15

Hi Pablo,
I’m using DataScraping for scrape data from the web, so its given by itself attach.
@Pablo_Sanchez


#16

@bagishojha maybe you html selector is not valid ?


#17

Ok you are scrapping data of search results, so did you see any pattern in selector every time you search? If it is changing every time as you said


#18

yes, you are saying right. My selector changes every time, sometimes its have emrer20002 and next time emrer19776,… Like this its change every time. If I’m trying to change selector using wildcard its not work.
@Pablo_Sanchez
@prankurjoshi


#19

This Selector seem to be very unstable generally you should not use ID attributes in selectors. Try to use UI Explorer and find some other attribute which can be used without even changing. I am sure this will work

image


#20

Okay Thanks @prankurjoshi, i’m going to try it.