Skip to content

Instantly share code, notes, and snippets.

@lttzzlll
Created June 7, 2018 08:53
Show Gist options
  • Save lttzzlll/08b6b719f56a77469dbe28e1cad22abd to your computer and use it in GitHub Desktop.
Save lttzzlll/08b6b719f56a77469dbe28e1cad22abd to your computer and use it in GitHub Desktop.
BAIDUNEWS_UTC_FORMAT_PATTERN1 = r'^(?P<publisher>\S+)\s+(((?P<year>\d{4})年(?P<month>\d{2})月(?P<day>\d{2})日\s+(?P<hour>\d{2}):(?P<minute>\d{2}))|(?P<beforetime>(?P<pubint>\d+)(?P<pubtype>分钟|小时)前))$'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment