[Python] Python - Extract multiple json with the same key

Discussão em 'Python' iniciado por Stack, Julho 30, 2025.

  1. Stack

    Stack Membro Participativo

    So I am loading a JSON file containing a proxies,

    my JSON Object .

    {
    "http":{
    "http://":"64.90.50.38:45876/",
    "http://":"89.250.220.40:54687/",
    "http://":"89.207.92.146:37766/",
    "http://":"89.23.194.174:8080/",
    "http://":"82.208.111.100:52480/"
    }
    }


    I want to access each proxy but I keep getting the last proxy which is "http://":"82.208.111.100:52480/

    my code :

    import json
    x = open('proxy.json', 'r')
    data = json.load(x)
    print data['http']


    My Question is : how can I access these values with the same key ?

    Continue reading...

Compartilhe esta Página