Created
January 11, 2016 17:39
-
-
Save dirk-thomas/56372cb4fd91f62bbd9c to your computer and use it in GitHub Desktop.
Find pages which didn't contain spam before
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import re | |
for name in os.listdir('.'): | |
if not os.path.exists(name + '/revisions/00000002'): | |
continue | |
with open(name + '/revisions/00000001', 'r') as h: | |
content = h.read() | |
if re.search('quickbook', content, re.IGNORECASE): | |
continue | |
print(name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment