in reply to OT: How legal are automated logins

Oh for pity's sake, stop worrying! Just do it. If the service providers object, they can tell your friend to stop using your software.