code: def _run_scapy(self, scapy_all):
          
          # if not self._flag_a:
          #     self._flag_a = True
          #     warnings.warn(f"'Extractor(engine=scapy)' object is not iterable; "
          #                     "so 'auto=False' will be ignored", AttributeWarning, stacklevel=stacklevel())
  
          if self._exlyr != 'None' or self._exptl != 'null':
              warnings.warn("'Extractor(engine=scapy)' does not support protocol and layer threshold; "
                            f"'layer={self._exlyr}' and 'protocol={self._exptl}' ignored",
                            AttributeWarning, stacklevel=stacklevel())
  
          # extract & analyse file
          self._expkg = scapy_all
          self._extmp = iter(scapy_all.sniff(offline=self._ifnm))
  
          # start iteration
          self.record_frames()
docs: Call scapy.all.sniff to extract PCAP files.