Href attribute web scraping of an html element

I need to extract this number 5531123456789
of this html code

			<div class="col-sm-9">
        			<input type="text" readonly="" class="form-control-plaintext col-form-label-sm" id="CelularMasked_02216705-ade2-f2dc-1db3-db16ea3d32ca" value="(**) *****-6789">
                    <i class="fas fa-eye ml-2 fa-xs text-orthopride align-self-center" id="celularPaciente" onmouseover="exibirCelular(true);" onmouseout="exibirCelular(false)" data-toggle="tooltip" data-placement="top" title="" data-original-title="Visualizar celular do paciente"></i>

                   <a class="d-flex" href="" target="_blank">
                         <i class="fab text-success fa-whatsapp ml-2 fa-xs align-self-center" aria-hidden="true" data-toggle="tooltip" data-placement="right" title="" data-original-title="Chamar no Whatsapp"></i>

Try something like that. Might need some adjustments:

“Command”: “storeAttribute”,
“Target”: “//a[@class=‘d-flex’]@href”,
“Value”: “myURL”

Then use the “execute” command in Kantu to use a JavaScript that give you the last part of the URL delimited by “/”

1 Like

I already tried that possibility and it didn’t work.