I am iterating over different websites and want to extract phone numbers from these different websites but the layout of these websites is completely different from one another
How can I achieve this specific use-case?
Thanks!
I am iterating over different websites and want to extract phone numbers from these different websites but the layout of these websites is completely different from one another
How can I achieve this specific use-case?
Thanks!
If the phone number formats are same across then we cantry using a generic selector with regex in the selector to match the phone number…else there is no option
Cheers
@Anil_G
Yes, the phone number format is same, do you have the code for that?
That will be very helpful
thanks
You can try something like this
Eg: <webctrl tag='DIV' innertext='\d{3}-\d{3}-\d{4}' matching:innertext='regex' />
Here assumption is ph number is in format of 123-234-3345
…adjust the regex accordingly
Also gave the tag as div …mostly that shpuld be the case…if that does not work please try changing accordingly or add * at the start and end of innertext so that any div containing number can be identified and after get text we can try extracting the required number again
Hope this helps
Cheers
@Anil_G
thanks for your help, but I am not able to validate it, the tag in my case is “FONT”, I have verified
Can u give an example of how the layout of the website looks
@Anil_G
yes, that’s correct… for german number extraction
First website Link https://www.workwise.io/impressum
Second website link Impressum | inTime
Try referring this @Sami_Rajput
Cheers