Improved the dict print
This commit is contained in:
parent
e078479db0
commit
1337d3ce8a
7
fetch.py
7
fetch.py
@ -25,4 +25,9 @@ def runfetch(url):
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
diclist=runfetch('https://www.legifrance.gouv.fr/eli/arrete/2018/10/12/PRMD1824595A/jo/texte')
|
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'
|
url='https://www.legifrance.gouv.fr/eli/arrete/2018/10/12/PRMD1824595A/jo/texte'
|
||||||
print(diclist)
|
# 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]}")
|
Loading…
Reference in New Issue
Block a user