get links or images, and print them out