def get_crawled_date(df):
    """ Extract crawled date from the 'scrape_id' field. """

    df['crawled_date'] = df['scrape_id'].astype(str)
    df['crawled_date'] = df['crawled_date'].apply(lambda x: x[:8])
    
    return df