from scapy.all import * # this makes me cringe a = sniff(iface="en0", filter="tcp and port 80", count=10) a a.res a.res[0] # first packet a.res[0].show()