If you don’t know how to create the script or don’t want to do it, you should use one of the raw ip lists they provide.
In directory levels you can find preprocessed raw IP lists based on number of blacklist occurrences (e.g. levels/3.txt holds IP addresses that can be found on 3 or more blacklists).
So if you want to use all the the ips in ipsum list, use this url for level 1 list: https://raw.githubusercontent.com/stamparm/ipsum/master/levels/1.txt
Maybe a level 1 is too much and you want to use level 3 list: https://raw.githubusercontent.com/stamparm/ipsum/master/levels/3.txt
So you don’t need to use any script, just the url.