This commit is contained in:
Tykayn 2024-10-21 23:58:55 +02:00 committed by tykayn
parent 40d91b8961
commit e13c22924b
4 changed files with 13400 additions and 0 deletions

View File

@ -0,0 +1,632 @@
[
{
"name": "Valérie BARTKOWIAK",
"address": "43 rue Laennec, 29490 GUIPAVAS",
"ref:FR:convention_secteur": "2",
"contact:phone": "0603234834",
"contact:website": "https://gynandco.wordpress.com/2024/10/18/valerie-bartkowiak/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Alison RICHARD",
"address": "142 route de Darnétal, 76000 Rouen",
"ref:FR:convention_secteur": "1",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/10/18/alison-richard/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Anne-Claire DESSE",
"address": "octobre 18, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/10/18/anne-claire-desse/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Charline DIDIER",
"address": "7 Rue de Bourgogne, 69009 Lyon",
"ref:FR:convention_secteur": "1",
"contact:phone": "0981358948",
"contact:website": "https://gynandco.wordpress.com/2024/10/18/charline-didier/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Pierre DE TROGOFF",
"address": "103 avenue de la République, 75011 Paris",
"ref:FR:convention_secteur": "1",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/10/18/pierre-de-trogoff/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Philippe DESSARD",
"address": "6 Boulevard de la Boutière, 35760 Saint-Grégoire",
"ref:FR:convention_secteur": "2",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/10/18/philippe-dessard/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Céline DELPOUVE PARCOIT",
"address": "octobre 18, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0678604740",
"contact:website": "https://gynandco.wordpress.com/2024/10/18/celine-delpouve-parcoit/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Gaëlle PERRILLAT BOITEUX",
"address": "octobre 15, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0768510762",
"contact:website": "https://gynandco.wordpress.com/2024/10/15/gaelle-perrillat-boiteux/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Eléonore BELINKI",
"address": "Cabinet des Canuts, 32 Rue Valentin Couturier, 69004 Lyon",
"ref:FR:convention_secteur": "1",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/10/15/eleonore-belinki/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Louis LECARME",
"address": "166 avenue de Castres, 31500 Toulouse",
"ref:FR:convention_secteur": "1",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/10/15/louis-lecarme/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Emilie RACHET",
"address": "Cabinet de la Tour, 2 rue des fossés, 78 550 Houdan",
"ref:FR:convention_secteur": "1",
"contact:phone": "0973032166",
"contact:website": "https://gynandco.wordpress.com/2024/10/15/emilie-rachet/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Mathieu HENNON",
"address": "octobre 15, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0374855788",
"contact:website": "https://gynandco.wordpress.com/2024/10/15/mathieu-hennon/",
"gender": "unknown",
"visioconference_meeting": "no"
},
{
"name": "Jean-Sébastien CADWALLER",
"address": "octobre 15, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0148112190",
"contact:website": "https://gynandco.wordpress.com/2024/10/15/jean-sebastien-cadwaller/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Laura MARTIN",
"address": "octobre 13, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/10/13/laura-martin/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Mariette DUTILLEUL",
"address": "octobre 12, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0674677181",
"contact:website": "https://gynandco.wordpress.com/2024/10/12/mariette-dutilleul/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Marielle CODBESSIN",
"address": "3 rue du tertre vert, 22190 Plérin",
"ref:FR:convention_secteur": "1",
"contact:phone": "0296745848",
"contact:website": "https://gynandco.wordpress.com/2024/10/12/marielle-codbessin/",
"gender": "unknown",
"visioconference_meeting": "no"
},
{
"name": "Sophie BEUZART",
"address": "33 Rue Emile Rousse, 29200 Brest",
"ref:FR:convention_secteur": "1",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/10/12/sophie-beuzart/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Catherine DUTHOY",
"address": "Allée Philippe Polderman, 31400 Toulouse",
"ref:FR:convention_secteur": "1",
"contact:phone": "0661862095",
"contact:website": "https://gynandco.wordpress.com/2024/10/12/catherine-duthoy/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Marie MORIN",
"address": "octobre 12, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0777787128",
"contact:website": "https://gynandco.wordpress.com/2024/10/12/marie-morin/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Odile WANDJI",
"address": "octobre 12, 2024",
"ref:FR:convention_secteur": "2",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/10/12/odile-wandji/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Catherine MURIS",
"address": "octobre 11, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0231068818",
"contact:website": "https://gynandco.wordpress.com/2024/10/11/catherine-muris/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Aurore GUIER",
"address": "30 Av. Paul-Emile Victor, 98830 Dumbéa, Nouvelle-Calédonie",
"ref:FR:convention_secteur": "1",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/10/11/aurore-guier/",
"gender": "unknown",
"visioconference_meeting": "no"
},
{
"name": "Chloé POULAIN",
"address": "Espace médicale du faubourg, 111 Rue de Nivelle, 59230 Saint-Amand-les-Eaux",
"ref:FR:convention_secteur": "2",
"contact:phone": "0327406072",
"contact:website": "https://gynandco.wordpress.com/2024/10/11/chloe-poulain/",
"gender": "unknown",
"visioconference_meeting": "no"
},
{
"name": "Benjamin PORTE CAZAUX",
"address": "2 Route du Baqué, 31390 Carbonne",
"ref:FR:convention_secteur": "1",
"contact:phone": "0561909160",
"contact:website": "https://gynandco.wordpress.com/2024/10/11/benjamin-porte-cazaux/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Alexandra LASCOMBE",
"address": "octobre 8, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0685227396",
"contact:website": "https://gynandco.wordpress.com/2024/10/08/alexandra-lascombe/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Elodie GINESTE",
"address": "octobre 8, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0788121758",
"contact:website": "https://gynandco.wordpress.com/2024/10/08/elodie-gineste/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Fabienne MALLERET",
"address": "octobre 8, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0473643978",
"contact:website": "https://gynandco.wordpress.com/2024/10/08/fabienne-malleret/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Stéphanie BARBIER",
"address": "Rue Alfred Thillard, 76620 Le Havre",
"ref:FR:convention_secteur": "1",
"contact:phone": "0235464750",
"contact:website": "https://gynandco.wordpress.com/2024/10/08/stephanie-barbier/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Bleuenn RIDARD",
"address": "24 rue du Commerce, 81100 Castres",
"ref:FR:convention_secteur": "1",
"contact:phone": "0778434800",
"contact:website": "https://gynandco.wordpress.com/2024/10/08/bleuenn-ridard/",
"gender": "unknown",
"visioconference_meeting": "no"
},
{
"name": "Emma WURSTEN",
"address": "octobre 8, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0621695768",
"contact:website": "https://gynandco.wordpress.com/2024/10/08/emma-wursten/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Morgane POIGNET",
"address": "12 ZA la Burliere, 13530 TRETS",
"ref:FR:convention_secteur": "1",
"contact:phone": "0632930496",
"contact:website": "https://gynandco.wordpress.com/2024/10/01/morgane-poignet/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Marie FERRIERES",
"address": "octobre 1, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0467789097",
"contact:website": "https://gynandco.wordpress.com/2024/10/01/marie-ferrieres/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Marine DEBORT",
"address": "octobre 1, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/10/01/marine-debort/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Marie DURAND SEZNEC",
"address": "octobre 1, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0240799610",
"contact:website": "https://gynandco.wordpress.com/2024/10/01/marie-durand-seznec/",
"gender": "unknown",
"visioconference_meeting": "no"
},
{
"name": "Patricia RAVASY",
"address": "octobre 1, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0603525766",
"contact:website": "https://gynandco.wordpress.com/2024/10/01/patricia-ravasy/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Alexie GAUTHIER",
"address": "octobre 1, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/10/01/alexie-gauthier/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Colin GALLICE",
"address": "Centre médical Ambroise Paré, boulevard Ambroise Paré, 69008 Lyon",
"ref:FR:convention_secteur": "2",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/10/01/colin-gallice/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Marie Meghan CARTIAUX",
"address": "octobre 1, 2024",
"ref:FR:convention_secteur": "2",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/10/01/marie-meghan-cartiaux/",
"gender": "unknown",
"visioconference_meeting": "no"
},
{
"name": "Coralie BOREL",
"address": "octobre 1, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/10/01/coralie-borel/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Julia COUFFIN",
"address": "20 rue de la République, 12100 Millau",
"ref:FR:convention_secteur": "1",
"contact:phone": "0638025086",
"contact:website": "https://gynandco.wordpress.com/2024/10/01/julia-couffin/",
"gender": "unknown",
"visioconference_meeting": "no"
},
{
"name": "Elsa MARIN",
"address": "octobre 1, 2024",
"ref:FR:convention_secteur": null,
"contact:phone": "0457272045",
"contact:website": "https://gynandco.wordpress.com/2024/10/01/elsa-marin/",
"gender": "unknown",
"visioconference_meeting": "no"
},
{
"name": "Orlanne POLIZZI",
"address": "septembre 19, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0474433646",
"contact:website": "https://gynandco.wordpress.com/2024/09/19/orlanne-polizzi/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Dyhia MOUSSAOUI",
"address": "septembre 17, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0233323030",
"contact:website": "https://gynandco.wordpress.com/2024/09/17/dyhia-moussaoui/",
"gender": "unknown",
"visioconference_meeting": "no"
},
{
"name": "Mélissa AMAYA",
"address": "29 Boulevard François Suarez, 06340 La Trinité",
"ref:FR:convention_secteur": "1",
"contact:phone": "0667572730",
"contact:website": "https://gynandco.wordpress.com/2024/09/17/melissa-amaya/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Huda POSTIC",
"address": "16 rue des Genêts 29252 Plouezoch",
"ref:FR:convention_secteur": "1",
"contact:phone": "0664796398",
"contact:website": "https://gynandco.wordpress.com/2024/09/17/huda-postic/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Alexandra SASPORTAS",
"address": "8 Boulevard de Magenta, 75010 Paris",
"ref:FR:convention_secteur": "1",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/09/17/alexandra-sasportas/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Anne ALFASSA",
"address": "70 FISMES",
"ref:FR:convention_secteur": "1",
"contact:phone": "0326480252",
"contact:website": "https://gynandco.wordpress.com/2024/09/17/anne-alfassa/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Isabelle WEIBEL",
"address": "13 rue du dragon 57450 Farebersviller",
"ref:FR:convention_secteur": "1",
"contact:phone": "0681125615",
"contact:website": "https://gynandco.wordpress.com/2024/09/17/isabelle-weibel/",
"gender": "unknown",
"visioconference_meeting": "no"
},
{
"name": "Pauline CONGRATEL",
"address": "septembre 17, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0659151823",
"contact:website": "https://gynandco.wordpress.com/2024/09/17/pauline-congratel/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Svenja DELACOUR",
"address": "5 rue de la Chalotais, 35510 Cesson-Sévigné",
"ref:FR:convention_secteur": null,
"contact:phone": "0299831336",
"contact:website": "https://gynandco.wordpress.com/2024/09/17/svenja-delacour/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Anaïs DAUVERGNE",
"address": "35 Rue de la Soie, 69100 Villeurbanne",
"ref:FR:convention_secteur": null,
"contact:phone": "0478938968",
"contact:website": "https://gynandco.wordpress.com/2024/09/17/anais-dauvergne/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Bertrand MAY",
"address": "37 rue Julie Daubié, 54000 Nancy",
"ref:FR:convention_secteur": "2",
"contact:phone": "0383951191",
"contact:website": "https://gynandco.wordpress.com/2024/09/16/bertrand-may/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Julie BRICHON",
"address": "Pôle Médical Gambetta, 11 Rue Gambetta, 33290 Blanquefort",
"ref:FR:convention_secteur": "1",
"contact:phone": "0556571646",
"contact:website": "https://gynandco.wordpress.com/2024/09/16/julie-brichon/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Calistine ROUANET",
"address": "45 rue Sadi Carnot, 59113 Seclin",
"ref:FR:convention_secteur": null,
"contact:phone": "0768861502",
"contact:website": "https://gynandco.wordpress.com/2024/09/16/calistine-rouanet/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Marianne LAINE",
"address": "13 Rue Herbière, 76000 Rouen",
"ref:FR:convention_secteur": "1",
"contact:phone": "0235988082",
"contact:website": "https://gynandco.wordpress.com/2024/09/16/marianne-laine/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Mathilde EMARD-BURRIAT",
"address": "Cabinet Gynecologia, 75 Avenue Gabriel Péri, 38400 Saint-Martin-dHères",
"ref:FR:convention_secteur": "1",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/09/16/mathilde-emard-burriat/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Marine VIGIE",
"address": "Institut de médecine Cassis, 7 chemin du mont Gibaou, Les coteaux du Brégadan, 13260 Cassis",
"ref:FR:convention_secteur": "1",
"contact:phone": "0624312876",
"contact:website": "https://gynandco.wordpress.com/2024/09/16/marine-vigie/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Marie-Laure TITIMAL-CANDELLE",
"address": "34 Rue François Carlier, 62530 Hersin-Coupigny",
"ref:FR:convention_secteur": "1",
"contact:phone": "0663962030",
"contact:website": "https://gynandco.wordpress.com/2024/08/12/marie-laure-titimal-candelle/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Coralie GRAND",
"address": "532 Chemin des Noyers, 38530 CHAPAREILLAN",
"ref:FR:convention_secteur": "1",
"contact:phone": "0954658656",
"contact:website": "https://gynandco.wordpress.com/2024/08/12/coralie-grand/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Antoine DRAIN",
"address": "La Brigantine Résidence de lile aux bois, 1 All. Carolus, 59000 Lille",
"ref:FR:convention_secteur": "1",
"contact:phone": "0320092434",
"contact:website": "https://gynandco.wordpress.com/2024/08/12/antoine-drain/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Christina LONGO",
"address": "9 bis Av. du Maréchal Foch, 06190 Roquebrune-Cap-Martin",
"ref:FR:convention_secteur": "1",
"contact:phone": "0412101211",
"contact:website": "https://gynandco.wordpress.com/2024/08/12/christina-longo/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Alicia FERNANDES HERRAULT",
"address": "10 Rue du Manet, 74130 Bonneville",
"ref:FR:convention_secteur": "1",
"contact:phone": "0688455531",
"contact:website": "https://gynandco.wordpress.com/2024/08/12/alicia-fernandes-herrault/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Jonathan COHEN-SCALI",
"address": "4 rue Jules Grevy, 34000 Montpellier",
"ref:FR:convention_secteur": "1",
"contact:phone": "0467725825",
"contact:website": "https://gynandco.wordpress.com/2024/08/12/jonathan-cohen-scali/",
"gender": "unknown",
"visioconference_meeting": "no"
},
{
"name": "Malika ROMANO",
"address": "CPEF Centre de planification et déducation familial, 5 bis rue Devosge, 21000 DIJON",
"ref:FR:convention_secteur": "1",
"contact:phone": "0380636834",
"contact:website": "https://gynandco.wordpress.com/2024/08/12/malika-romano/",
"gender": "unknown",
"visioconference_meeting": "no"
},
{
"name": "Ismahan BADACHE",
"address": "août 12, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0491407863",
"contact:website": "https://gynandco.wordpress.com/2024/08/12/ismahan-badache/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Inès SAMAD",
"address": "1 Rue Paul Langevin, 33210 LangonPlace Saint Michel 33192 La Réole",
"ref:FR:convention_secteur": "1",
"contact:phone": null,
"contact:website": "https://gynandco.wordpress.com/2024/08/12/ines-samad/",
"gender": "unknown",
"visioconference_meeting": "no"
},
{
"name": "Aurore VERHOEVEN",
"address": "6 place Jacqueline et Jean Lerat, 18000 Bourges",
"ref:FR:convention_secteur": "1",
"contact:phone": "0248700301",
"contact:website": "https://gynandco.wordpress.com/2024/08/12/aurore-verhoeven/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Julien ARTIGNY",
"address": "70 chemin de Baluffet, 31300 Toulouse",
"ref:FR:convention_secteur": "1",
"contact:phone": "0561404595",
"contact:website": "https://gynandco.wordpress.com/2024/08/12/julien-artigny/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Sandrine WILLIAMSON",
"address": "août 12, 2024",
"ref:FR:convention_secteur": "1",
"contact:phone": "0626632039",
"contact:website": "https://gynandco.wordpress.com/2024/08/12/sandrine-williamson/",
"gender": "unknown",
"visioconference_meeting": "yes"
},
{
"name": "Périnne GODEFROY",
"address": "415 avenue Colonel Pechot, 54200 Toul",
"ref:FR:convention_secteur": "1",
"contact:phone": "0383627059",
"contact:website": "https://gynandco.wordpress.com/2024/08/12/perinne-godefroy/",
"gender": "unknown",
"visioconference_meeting": "yes"
}
]

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,150 @@
import json
import geopandas as gpd
from bs4 import BeautifulSoup
from shapely.geometry import Point
import re
def extraire_numero_telephone(line):
# Extraction des nombres dans la ligne
numbers = re.findall(r'\d+', line)
if numbers:
numbers = ''.join(numbers)
print('numbers',numbers)
# Vérification si un numéro de téléphone est présent
if len(numbers) == 10:
# Reconstruction du numéro de téléphone
phone_number = ''.join(numbers)
return phone_number
else:
return None
# trouver si la ligne est une adresse en cherchant deux numéros distincts et une virgule
def extraire_addr_line(line):
# Extraction des nombres dans la ligne
numbers = re.findall(r'\d+', line)
# Vérification si un numéro de téléphone est présent
if len(numbers) == 2 and ',' in line:
return line
else:
return None
# Charger le fichier HTML
with open("list.html", "r") as file:
html = file.read()
# Analyser le code HTML avec BeautifulSoup
soup = BeautifulSoup(html, "html.parser")
# Initialiser une liste pour stocker les informations des docteurs
doctors = []
# Trouver toutes les balises <article> sur la page
articles = soup.find_all("article")
# Parcourir chaque <article> pour extraire les informations des docteurs
for article in articles:
# Récupérer le nom du docteur à partir de la balise <h1>
# print(article.find("h1"))
name = article.find("h1").find('a').text.strip()
url = article.find("h1").find('a').get("href")
# Récupérer l'adresse du docteur à partir de la balise <em> dans la classe "entry-content"
address = ''
em = article.find("em")
if em:
address = em.text
print(address)
# Vérifier si le contenu de l'article contient "Secteur 1"
if "Secteur 1" in article.text:
sector = "1"
elif "Secteur 2" in article.text:
sector = "2"
else:
sector = None
# Recherche d'un numéro de téléphone dans l'article
phone_number = None
gender = 'unknown'
trans_friendly = 'unknown'
handles_violence = 'unknown'
visio_meeting = 'no'
pseudo_science = 'unknown'
premenstrual_syndrome = 'unknown'
accessible_cabinet = 'unknown'
tatoo = 'unknown'
toxico = 'unknown'
sterilisation = 'unknown'
abortion = 'unknown'
endometriosis = 'unknown'
bigbody = 'unknown'
poil = 'unknown'
bi = 'unknown'
for line in article.stripped_strings:
found = extraire_numero_telephone(line)
if found:
print(found)
phone_number = found
if 'Rdv en ligne possible' in line:
visio_meeting = 'yes'
if 'femme soignante' in line:
gender = 'women'
if 'homme soignante' in line:
gender = 'women'
if 'Trans friendly' in line:
trans_friendly = 'yes'
if 'Tattoo' in line:
tatoo = 'yes'
if 'Sensibilité violence' in line:
handles_violence = 'yes'
if 'naturelles/alternatives' in line:
pseudo_science = 'yes'
if 'SPM' in line:
premenstrual_syndrome = 'yes'
if 'Poilfriendly' in line:
poil = 'yes'
if 'Bifriendly' in line:
bi = 'yes'
if 'Stérilisation' in line:
sterilisation = 'yes'
# chercher une adresse si on en a pas
if not address:
found = extraire_addr_line(line)
if found:
print(found)
address = found
# Ajouter les informations du docteur à la liste
doctor = {
"name": name,
"address": address,
"ref:FR:convention_secteur": sector,
"contact:phone": phone_number,
"contact:website": url,
"gender": gender,
"visioconference_meeting": visio_meeting,
"handles:gender:trans": trans_friendly,
"handles:violence": handles_violence,
"handles:premenstrual_syndrome": premenstrual_syndrome,
"accessible_cabinet": accessible_cabinet,
"pseudo_science": pseudo_science,
"handles:tatoo": tatoo,
"handles:toxico": toxico,
"handles:sterilisation": sterilisation,
"handles:abortion": abortion,
"handles:endometriosis": endometriosis,
"handles:premenstrual_syndrome": premenstrual_syndrome,
"handles:hairy": poil,
"handles:bigbody": bigbody,
"handles:gender:bi": bi,
}
doctors.append(doctor)
# Enregistrer les informations des docteurs au format JSON dans un fichier
with open("gynandco.json", "w", encoding="utf-8") as f:
json.dump(doctors, f, ensure_ascii=False, indent=2)

6309
etalab_data/list.html Normal file

File diff suppressed because it is too large Load Diff