This originally served as an automated tool to grab domain and URLs from spam messages inside database, allowing me to filter and block them. You might find this as a handy tool for other purpose.