Commits

Thomas Figg committed c1d0fe6

warcfilter search record content

  • Participants
  • Parent commits 1573678

Comments (0)

Files changed (1)

File warcfilter.py

                         found = True
                         break
 
+                content_type, content = record.content
+                if not found:
+                    found = bool(pattern.search(content))
+                        
+
                 if found ^ invert:
                     record.write_to(out)