It seems to me the thing to do in order to avoid any licensing agreement hassles (licensing can change at anytime, BTW) would be to provide a means for the user to input the required URL. The software can then be provided "as is" and any liabilities would be the users.