

def add_scraper_data(output):
    print('adding scraped commissioner data')
    scraped = json.loads(open('data/scraped-anc.json').read())
    for rec in scraped:
        smd = rec
        for entry in scraped[output]:
            output[smd[0]]['ancs'][smd[1]]['smds'][smd[2:]][entry] = scraped[rec][entry]

dataset/ETHPy150Open codefordc/ancfinder/scripts/update_anc_database.py add_scraper_data/VarMisuse@47/76 `rec`->`output`