Actually, from the terms of service:
> The following restrictions apply to your use of the Service. You are not allowed to: [...] 3. access the Service using any automated means (such as robots, botnets or scrapers) except (a) in the case of public search engines, in accordance with YouTube’s robots.txt file;