Sorry, you cannot right now. Pyshark parses the output of tshark, which does not contain the source bytes of the packet. You can try to โreassembleโ the package yourself, but I would not recommend it.
Be that as it may, this function can be added, but at the moment it is not possible if you want me to specifically suggest you use another package or analyze only packages (without any protocols) myself or using construct (or other similar packages).
source share