Hello à tous,
Petite question, quand je tente d’utiliser webscraper pour aller capter des datas d’annuaires, je bloque sur ce que je dois faire pour sélectionner le numéro de téléphone qui est souvent caché derrière un élément cliquable « Afficher le numéro ».
Exemple ici:
https://annuaire.lefigaro.fr/annuaire/ville/strasbourg-67/acupressure
J’ai:
{"_id":« annuairelefigaro »,« 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 »:« titre »,« 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 »:« adresse »,« type »:« SelectorText »,« parentSelectors »:[« link »],« selector »:".adpJam span.adp-skill__label",« multiple »:false,« regex »:"",« delay »:0}]}
Cela me donne:
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 | 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 | 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 | 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 | 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 | 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 | Anémone de blicquy | https://annuaire.lefigaro.fr/professionnels/U11eVUtcQ1k | Anémone De Blicquy | relaxation | null | 20 r Wissembourg 67000 Strasbourg |
Le téléphone apparait systématiquement comme « null ».
Merci d’avance pour votre aide