There can be many reasons for this problem. Do you have more details on web exception?
One of the reasons that I came across before is that you have a line with a bad user agent. Some websites (such as Google) verify that requests come from well-known user agents to prevent bots from automatically being used on their pages.
In fact, you can verify that the user agreement for YouTube does not stop you from doing what you are doing. If so, then what you are doing can be better accomplished by going through approved channels such as web services.
dustyburwell
source share