unify anayasa tools

This commit is contained in:
saidsurucu
2025-07-17 20:09:50 +03:00
parent 856ecdf13d
commit f96c1a2e44
6 changed files with 271 additions and 152 deletions
+5
View File
@@ -274,6 +274,11 @@ class AnayasaMahkemesiApiClient:
if not karar_metni_div: # Fallback if not in KararMetni
karar_metni_div = soup.find("div", class_="WordSection1")
# Initialize with empty string defaults
decision_ek_no_from_page = ""
decision_date_from_page = ""
official_gazette_from_page = ""
if karar_metni_div:
# Attempt to find E.K. No (Esas No, Karar No)
# Norm Denetimi pages often have this in bold <p> tags directly or in the WordSection1