def dateutil_parse(date_string, settings=None, **kwargs):
    today = datetime.utcnow()
    kwargs.update(default=today)
    date_string = re.sub(r'\b(year|month|week|day)\b', '', date_string, re.I)

    # XXX: this is needed because of a bug in dateutil.parser
    # that raises TypeError for an invalid string
    # https://bugs.launchpad.net/dateutil/+bug/1042851
    try:
        return new_parser().parse(date_string, settings=settings, **kwargs)
    except TypeError as e:
        raise ValueError(e, "Invalid date: %s" % date_string)
Wrapper function around dateutil.parser.parse
dataset/ETHPy150Open scrapinghub/dateparser/dateparser/date_parser.py/dateutil_parse