Hello, everybody,
I have a question, when I try to use webscraper to go and collect data from directories, I get stuck on what I have to do to select the phone number which is often hidden behind a clickable "Show number" element.
Example here:
https://annuaire.lefigaro.fr/annuaire/ville/strasbourg-67/acupressure 2
I have:
{"_id":" directorylefigaro "," startUrl ":[" https://annuaire.lefigaro.fr/annuaire/ville/strasbourg-67/acupressure"]," selectors ":[{" id ":" link "," type ":" SelectorLink "," parentSelectors ":["_root"]," selector ":" a. adp-listingResultHeader__name "," multiple ":true," delay ":0},{" id ":" title "," type ":" SelectorText "," parentSelectors ":["link"]," selector ":": h1"," multiple ":false," regex ":"""," delay ":0},{" id ":" specialite "," type ":" SelectorText "," parentSelectors ":[" link "]," selector ":". adp-detailsHeader__info span.adp-skill__label:nth-of-type(1) "," multiple ":false," regex ":"""," delay ":0},{" id ":" num "," type ":" SelectorText "," parentSelectors ":[" link "]," selector ":" div. is-shown"," multiple ":false," regex":"""," delay ":0},{" id":" address"," type":" SelectorText"," parentSelectors":[" link"]," selector":".adpJam span.adp-skill__label"," multiple ":false," regex":"""," delay ":0}]}.
That gives me:
web-scraper-order | web-scraper-start-url | link | link-href | titre | specialite | num | adresse |
---|---|---|---|---|---|---|---|
1587927535-10 | https://annuaire.lefigaro.fr/annuaire/ville/strasbourg-67/acupressure 2 | Delphine vuillemard unternehr | https://annuaire.lefigaro.fr/professionnels/U19WVEJYQ1Q | Delphine Vuillemard Unternehr | sophrologie | null | 32 all Comtes 67200 Strasbourg |
1587927531-8 | https://annuaire.lefigaro.fr/annuaire/ville/strasbourg-67/acupressure 2 | Sandrine gauthier | https://annuaire.lefigaro.fr/professionnels/U15RWENeS1Y | Sandrine Gauthier | sophrologie | null | 10 r Gén de Castelnau 67000 Strasbourg |
1587927539-12 | https://annuaire.lefigaro.fr/annuaire/ville/strasbourg-67/acupressure 2 | Thomas hartmann | https://annuaire.lefigaro.fr/professionnels/U1FWUkNbRlc | Thomas Hartmann | naturopathie | null | 9 av Racine 67200 Strasbourg |
1587927533-9 | https://annuaire.lefigaro.fr/annuaire/ville/strasbourg-67/acupressure 2 | Myriam munch | https://annuaire.lefigaro.fr/professionnels/U15VUUVWQFM | Myriam Munch | psychothérapie (pratiques hors du cadre réglementé) | null | 20 r Wissembourg 67000 Strasbourg |
1587927529-7 | https://annuaire.lefigaro.fr/annuaire/ville/strasbourg-67/acupressure 2 | Geraldine pour-chauvet | https://annuaire.lefigaro.fr/professionnels/U15eUkpWRFg | Geraldine Pour-Chauvet | kinésiologie | null | 9 r Marais Vert 67000 Strasbourg |
1587927537-11 | https://annuaire.lefigaro.fr/annuaire/ville/strasbourg-67/acupressure 2 | Anémone de blicquy | https://annuaire.lefigaro.fr/professionnels/U11eVUtcQ1k | Anémone De Blicquy | relaxation | null | 20 r Wissembourg 67000 Strasbourg |
The phone always appears as "null".
Thank you in advance for your help
David