[Python] How do I get more than 500 codereviews with Gerrit REST Api?

Discussão em 'Python' iniciado por Stack, Abril 8, 2025.

  1. Stack

    Stack Membro Participativo

    I'm writing a python script to generate how many changes was made within a timeframe for all projects, but when I use the Gerrit REST Api I can only get up to maximum of 500 unique users, and I want to see all of them, even if I take long timeframe (1 year Gerrit picture). This is my function for the API

    def requestAPICall(url):
    """
    does API stuff
    """
    response = requests.get(url)
    if response.status_code == 200:
    JSON_response = json.loads(response.text[4:])
    generateJSON(JSON_response)
    return (JSON_response, True)
    print("Error Occured")
    return (response, False)



    This is the link I used for the request in this case https://chromium-review.googlesourc...:25 +0100" before:"2023-01-01 11:31:25 +0100"

    I have tried curl commands but I do not know if that works

    Continue reading...

Compartilhe esta Página