Last active
June 8, 2021 00:54
-
-
Save vieirin/9041e90945f0b20fd4a14e2589167fca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
endpoint = 'https://dadosabertos.camara.leg.br/api/v2/proposicoes' | |
params = {"numero": 2945, "ordem": 'ASC', "ordenarPor": "id", "ano": 2020} | |
response = requests.get(endpoint, params=params).json() | |
json.dump(response, open('/tmp/arquivosalvo.json', 'w'), indent=4, sort_keys=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment