Skip to content

Instantly share code, notes, and snippets.

stay healthy

Fernanda Scovino fernandascovino

stay healthy
View GitHub Profile
def accessr(d, keys, default=None):
if len(keys) and d is not None:
return accessr(d.get(keys[0], default), keys[1:], default)
return d
def access(d, keys, default=None):
for k in keys:
if d is not None:
d = d.get(k, default)
turicas /
Last active Oct 18, 2021
Exemplo de código para acessar dados do Brasil.IO
import csv
import gzip
import io
import json
from urllib.parse import urlencode, urljoin
from urllib.request import Request, urlopen
class BrasilIO: