def ts_to_date(ts_str, loader_context):
    try:
        ts_int = int(ts_str)
        return datetime.datetime.fromtimestamp(ts_int).strftime('%Y-%m-%d')
    except __HOLE__:
        loader_context.get('spider').log('Timestamp could not be parsed ("{ts}")!'.format(ts=ts_str), logging.ERROR)
        return None
dataset/ETHPy150Open holgerd77/django-dynamic-scraper/dynamic_scraper/utils/processors.py/ts_to_date