you can use scapy sniff function and use regex or grep
import scapy tcpdump = sniff(count=5,filter="host 64.233.167.99",prn=lambda x:x.summary()) print tcpdump
change the filter for your filter text :)
or maybe you want to save traffic and see it in wirehark
wrpcap("temp.cap",pkts)
source share