I am having trouble converting a url from a csv file to json, change whatever changes anything always shows me the following error:

> 
> Traceback (most recent call last):
>  File "c:/Users/Gamer/Downloads/TimingReady/PC/archivos/prueba.py", line 8, in 
>  with open(csvUrl) as csvFile:
>  OSError: [Errno 22] Invalid argument: '<http://localhost/_144141/api/0WUFVJB4ZTBENW5F6JT3QAUV4ASMRH10.csv>'
> 
> 
> 

My code is as follows:

```
            import csv
            import json

            csvUrl = input("Paste the event URL: ")
            jsonFinal = "jsonEvento.json"

            data = {}
            with open(csvUrl) as csvFile:
                csvReader = csv.DictReader(csvFile)
                for csvRow in csvReader:
                    Place = csvRow["Place"]
                    data[Place] = csvRow

            root = {}
            roo["Participantes"] = data

            with open(jsonFinal, "w") as jsonFile:
                jsonFile.write(json.dumps(root, indent=4))

```

And the CSV file is as follows:

> 
> "Place";"Chip";"Numero";"Apellido";"Nombre";"Tiempo"
>  "1.";"739";"139";"MARTINEZ GUTIERREZ";"JOSE";"00:30:12,91"
>  "2.";"707";"107";"SUAREZ MORERA";"DANIEL";"02:00:17,54"
>  "3.";"1686";"274";"RODRIGUEZ VARGAS";"JOSE LUIS";"02:01:09,09"
>  "4.";"761";"161";"GONZALEZ MORENO";"MAURICIO ALBERTO";"02:03:18,29"
>  "5.";"775";"175";"HERNANDEZ";"ALEJANDRO";"02:05:05,93"
>  "6.";"1709";"297";"CASTILLO";"JOSE GREGORIO";"02:09:51,26"
>  "7.";"721";"121";"TELLEZ CRUZ";"CARLOS ALBERTO";"02:11:08,34"
>  "8.";"1711";"299";"MEDINA JARAMILLO";"JEFERSON";"02:12:26,48"
>  "9.";"766";"166";"JIMENEZ";"FRANCE ELIAS";"02:12:44,48"
>  "10.";"1671";"259";"GOMEZ PRIETO";"JEAN JENNER";"02:14:03,54"
>  "11.";"778";"178";"CAMPO SARMIENTO";"JOSE FRANCISCO";"02:15:45,05"
>  "12.";"1702";"290";"BUITRAGO HERNANDEZ";"NORBEY";"02:15:45,49"
> 
> 
> 

Which I need in JSON like this

```
            {
                "nombreEvento": "Intercontinental Sunset Cartagena",
                "participantes": [
                    {
                    "Apellido": "MARTINEZ GUTIERREZ",
                    "Chip": 739,
                    "Nombre": "JOSE",
                    "Numero": 139,
                    "Place": "1.",
                    "Tiempo": "00:30:12,91"
                    },
                    {
                    "Apellido": "SUAREZ MORERA",
                    "Chip": 707,
                    "Nombre": "DANIEL",
                    "Numero": 107,
                    "Place": "2.",
                    "Tiempo": "02:00:17,54"
                    },
                    {
                    "Apellido": "RODRIGUEZ VARGAS",
                    "Chip": 1686,
                    "Nombre": "JOSE LUIS",
                    "Numero": 274,
                    "Place": "3.",
                    "Tiempo": "02:01:09,09"
                    }
                ]
            }

```

I want to make Python stream the csv file in real time to json.