EasyASN is a command line tool for fetching the IP address space of each ASN.