Click button to show phone number

Hi everyone,
Can you please help me with the following issue
I'm trying to pick up the phone number behind the button in orange "Appeler"

Here is the url
https://www.iadfrance.fr/trouver-un-conseiller/postcode-group/lyon_69

But when I select the "Element click" the S button is in grey and I guess it's the one I should use ?

Thanks for your help !

The phone number is always visible in the HMTL as following

<button class="i-btn i-btn--primary mobile-hide" data-agent="42275" data-gtm="click_to_call_see_42275" data-gtm-trigger="u-clicked" **data-phone="0783013002"** id="adphone" type="button"><span class="flex items-center justify-center mr-sm"><svg><use xlink:href="/assets/svg/sprites.svg#adphone"></use> </svg> </span> <span class="button_anchor">Appeler</span></button>

If you just want to collect all the number, you can use the following code:

{"_id":"data-phone","startUrl":["https://www.iadfrance.fr/trouver-un-conseiller/postcode-group/lyon_69"],"selectors":[{"extractAttribute":"data-phone","id":"data-phone","parentSelectors":["_root"],"selector":"button.mobile-hide","type":"SelectorGroup"}]}

hi,
same situation here but with a "button button-block". in this url: Metal 2000 : Dépannage rideau métallique à Paris - Menuisier, à Paris 5 (75005), 75005 - Avis, adresse, téléphone - Alentoor

How can i scrap this ?

you should use Element Click with pause 2 seconds in this case and scrape your phone number...

Thanks for your response but after the click button the number show off ans i can't selection i stil have a.button-block.

that's because you don't like to review this forum to find a solution....
here is your test sitemap

{"_id":"alentoor-fr","startUrl":["https://www.alentoor.fr/paris5/services/menuisier/2545328-metal-2000-depannage-rideau-metallique-a-paris"],"selectors":[{"clickActionType":"real","clickElementSelector":".contacts div a:contains(\"Appeler\")","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":1000,"discardInitialElements":"discard-when-click-element-exists","id":"click","multiple":false,"parentSelectors":["_root"],"selector":"body","type":"SelectorElementClick"},{"id":"phone","multiple":false,"parentSelectors":["_root"],"regex":"","selector":"a.button-block[href*=\"tel:\"]","type":"SelectorText"}]}

You are a god walking in earth, my friends
Thank you soooooooo much

1 Like