diff --git a/fetch.py b/fetch.py index 40eb613..3675636 100755 --- a/fetch.py +++ b/fetch.py @@ -25,4 +25,9 @@ def runfetch(url): if __name__ == '__main__': diclist=runfetch('https://www.legifrance.gouv.fr/eli/arrete/2018/10/12/PRMD1824595A/jo/texte') url='https://www.legifrance.gouv.fr/eli/arrete/2018/10/12/PRMD1824595A/jo/texte' - print(diclist) \ No newline at end of file + # Print the dict + print("===== Dict =====") + for index, zone in enumerate(diclist): + print(f"\n-------------{index}----------------\n") + for element in zone: + print(f" {element}: {diclist[index][element]}") \ No newline at end of file