def METHOD_NAME(frm, to):
    one_day = datetime.timedelta(days=1)
    ret = []
    logging.debug("Querying between %s and %s", frm, to)
    while frm < to:
        url = frm.strftime(BASE_URL + "%Y/%m/%d.json")
        logging.debug("Fetching changes from %s", url)
        ret.append(extract_works(requests.get(url).json()))
        frm += one_day
    return itertools.chain(*ret)