title: why does my code show this error when using Pyshark library
body: <p>while am trying to use pyshark for some ctf tasks i got this output: </p>
  
  <blockquote>
    <p>traceback (most recent call last):
     File "test.py", line 5, in 
      if ("TCP" or "TLSv1.2") and ((packet.ip.src=="172.217.18.227" or  packet.ip.src=="192.168.1.100")) in packet:
      File "/home/shanx/.local/lib/python2.7/site-packages/pyshark/packet/packet.py", line 119, in <strong>getattr</strong>
        raise AttributeError("No attribute named %s" % item)
    AttributeError: No attribute named ip</p>
  </blockquote>
  
  <p>here's my python code :</p>
  
  <pre><code>import pyshark
  capture = pyshark.FileCapture("/home/shanx/Desktop/TASKS1.1/advancedNetwork")
  val=""
  for packet in capture:
      if ("TCP" or "TLSv1.2") and ((packet.ip.src=="172.217.18.227" or packet.ip.src=="192.168.1.100")) in packet:
          val= val+packet.sll.unused
  val.replace(":","")
  print(val)
  </code></pre>
  
  <p>note: it worked just fine without this instruction: </p>
  
  <pre><code>((packet.ip.src=="172.217.18.227" or packet.ip.src=="192.168.1.100"))
  </code></pre>
  
  <p>question: is there any fair documentation or tutorials for these kind of libraries ? </p>
  
  <p>thank you so much for answering! </p>