title: Print tcp payload from Pcap file with pyshark
body: <p>I download pcap file from <a href="https://wiki.wireshark.org/SampleCaptures#TCP" rel="nofollow noreferrer">Wiki</a> this <a href="https://wiki.wireshark.org/SampleCaptures?action=AttachFile&amp;do=get&amp;target=200722_tcp_anon.pcapng" rel="nofollow noreferrer">PCAP</a></p>
  <pre><code>import binascii
  import pyshark
  
  
  cap = pyshark.FileCapture('200722_tcp_anon.pcapng')
  for pkt in cap:
      text = pkt.tcp.payload.raw_payload
      print(text)
  cap.close()
  </code></pre>
  <p>But I got an error</p>
  <pre><code>Traceback (most recent call last):
    File &quot;main.py&quot;, line 7, in &lt;module&gt;
      text = pkt.tcp.payload.raw_payload
    File &quot;C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyshark\packet\layer.py&quot;, line 36, in __getattr__
      raise AttributeError()
  AttributeError
  
      
  </code></pre>
  <p>Why is that?</p>