1. scorpil
  2. warc-tools

Commits

Thomas Figg  committed c1d0fe6

warcfilter search record content

  • Participants
  • Parent commits 1573678
  • Branches default

Comments (0)

Files changed (1)

File warcfilter.py

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