def pub_date(soup):
pub_date = first(raw_parser.pub_date(soup, date_type="<STR_LIT>"))<EOL>if pub_date is None:<EOL><INDENT>pub_date = first(raw_parser.pub_date(soup, date_type="<STR_LIT>"))<EOL><DEDENT>if pub_date is None:<EOL><INDENT>return None<EOL><DEDENT>(day, month, year) = ymd(pub_date)<EOL>return date_struct(year, month, day)<EOL>
Return the publishing date in struct format
pub_date_date, pub_date_day, pub_date_month, pub_date_year, pub_date_timestamp
Default date_type is pub