Command for processing lists of urls

The code is getting uglier and uglier. I'm just hoping it gets the job
done without me spending much time on it.