Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
yields some indecipherable second element of each tuple. What I want to get back from that is:
import itertools as itr In : list(itr.groupby('1222311')) Out: [('1', <itertools._grouper at 0x3cae048>), ('2', <itertools._grouper at 0x3cae630>), ('3', <itertools._grouper at 0x3caedd8>), ('1', <itertools._grouper at 0x3cae1d0>)]
though the order of elements within the tuples is irrelevant.
[('1', 1), ('2', 3), ('3', 1), ('1', 2)]
Join the community of 500,000 technology professionals and ask your questions.