• MTK@lemmy.world
    link
    fedilink
    arrow-up
    44
    arrow-down
    2
    ·
    8 hours ago
    # Checking validity of each file
    for file in directory:
      content = file.read()
      for keywords in ("heil hitler","hitler did nothing wrong","kill the jews","hitler was the victim","there is no evidence for the Holocaust"):
        if keywords in content:
          return True
    
    # File is Invalid and fake news
    return False