# This is a sitescooper site file. see http://sitescooper.tsx.org/
# by Stefan Schwingeler and Carsten Clasohm, Version 0.3, 31.1.2000
URL: http://www.sueddeutsche.de/aktuell/
  Name: Sueddeutsche
  Levels: 2
  ContentsStart: <!-- CONTENT -->
  ContentsEnd: <!-- /CONTENT -->
  ContentsCachable: 0
  StoryURL: http://www.sueddeutsche.de/aktuell/\w+\.htm
  StoryStart: <!-- CONTENT -->
  StoryEnd: <!-- /CONTENT -->
  StoryLifetime: 2

StoryHTMLPreProcess: {
  if (/<B>(\d\d.\d\d.\d{2,4})<BR>/i) {
    $szDate = "$1";
  }
}

StoryPostProcess: {
  s/<FONT SIZE=\+2>Politik<\/FONT>/<H2>$szDate<\/H2><H2>Politik<\/H2>/i if (defined $szDate);

  s/ <\/a>/<\/a>/gi;
  s/<FONT SIZE=\+1 FACE="Helvetica"> ([^<]+) <\/FONT>/<B>$1<\/B>/sgi;
  s/<FONT SIZE=\+2>([^<]+)<\/FONT>/<H2>$1<\/H2>/sgi;
  s/<ARTICLE [^>]* date=(\d{4})(\d\d)(\d\d) [^>]*>/<P>$3.$2.$1<\/P>/gi;
}
