edb-noumea 0.2.2__py3-none-any.whl → 0.2.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- edb_noumea/details.py +9 -0
- {edb_noumea-0.2.2.dist-info → edb_noumea-0.2.4.dist-info}/METADATA +1 -1
- edb_noumea-0.2.4.dist-info/RECORD +8 -0
- edb_noumea-0.2.2.dist-info/RECORD +0 -8
- {edb_noumea-0.2.2.dist-info → edb_noumea-0.2.4.dist-info}/WHEEL +0 -0
- {edb_noumea-0.2.2.dist-info → edb_noumea-0.2.4.dist-info}/top_level.txt +0 -0
edb_noumea/details.py
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
def get_pdf_url():
|
|
2
|
+
"""
|
|
3
|
+
Fonction publique pour obtenir l'URL du dernier PDF d'analyses détaillées utilisé.
|
|
4
|
+
Retourne l'URL sous forme de chaîne, ou None si non trouvée.
|
|
5
|
+
"""
|
|
6
|
+
return get_latest_pdf_url()
|
|
1
7
|
|
|
2
8
|
import pandas as pd
|
|
3
9
|
import tabula
|
|
@@ -91,6 +97,9 @@ def get_detailed_results():
|
|
|
91
97
|
cleaned_df['id_point_prelevement'] = split_points[0].str.strip()
|
|
92
98
|
cleaned_df['desc_point_prelevement'] = split_points[1].str.strip() if split_points.shape[1] > 1 else ''
|
|
93
99
|
|
|
100
|
+
# Conversion de la colonne 'date' au format ISO (YYYY-MM-DD)
|
|
101
|
+
cleaned_df['date'] = pd.to_datetime(cleaned_df['date'], format='%d/%m/%Y', errors='coerce').dt.strftime('%Y-%m-%d')
|
|
102
|
+
|
|
94
103
|
return cleaned_df
|
|
95
104
|
|
|
96
105
|
if __name__ == "__main__":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: edb-noumea
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Un scraper pour la qualité des eaux de baignade à Nouméa.
|
|
5
5
|
Project-URL: Homepage, https://github.com/adriens/edb-noumea
|
|
6
6
|
Project-URL: Repository, https://github.com/adriens/edb-noumea
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
edb_noumea/__init__.py,sha256=G7WKTGLsr2wtW1E2jYpqq4miZLoSGhTifSE36CGNkLo,60
|
|
2
|
+
edb_noumea/details.py,sha256=naUbeipEhZkub8hU_d619RxBjyoewJ-Q3flsOdD64Yk,4636
|
|
3
|
+
edb_noumea/main.py,sha256=KWT0ZGrHlbhEsQxi_Rw0Mm1syDIxoY-Px1yab94IbJc,2115
|
|
4
|
+
examples/generer_graphique_analyses.py,sha256=qFTsBoZeUwZVeJjdyQWhHTTCEn-FnJKKffNQWDXZH68,1690
|
|
5
|
+
edb_noumea-0.2.4.dist-info/METADATA,sha256=e_txacYegziaabfiWEpOkWrBVbc8u8SBMYzd99uaESE,395
|
|
6
|
+
edb_noumea-0.2.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
+
edb_noumea-0.2.4.dist-info/top_level.txt,sha256=HO6xmPmVSX3DD7l-92iu5dbzULHN0ke793R40fBpyGU,20
|
|
8
|
+
edb_noumea-0.2.4.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
edb_noumea/__init__.py,sha256=G7WKTGLsr2wtW1E2jYpqq4miZLoSGhTifSE36CGNkLo,60
|
|
2
|
-
edb_noumea/details.py,sha256=ffHWTarKPgx-w5WcuClJMEPW-zYnCl_EEKgK0OWmmPo,4226
|
|
3
|
-
edb_noumea/main.py,sha256=KWT0ZGrHlbhEsQxi_Rw0Mm1syDIxoY-Px1yab94IbJc,2115
|
|
4
|
-
examples/generer_graphique_analyses.py,sha256=qFTsBoZeUwZVeJjdyQWhHTTCEn-FnJKKffNQWDXZH68,1690
|
|
5
|
-
edb_noumea-0.2.2.dist-info/METADATA,sha256=L5Umok2tPxkDsREP1U_c2NHEE36WnxOdNpbStv6gUzk,395
|
|
6
|
-
edb_noumea-0.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
-
edb_noumea-0.2.2.dist-info/top_level.txt,sha256=HO6xmPmVSX3DD7l-92iu5dbzULHN0ke793R40fBpyGU,20
|
|
8
|
-
edb_noumea-0.2.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|