+ def _download_webpage(self, *args, **kwargs):
+ kwargs.setdefault('headers', {})['User-Agent'] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4'
+ return super(UdemyIE, self)._download_webpage(
+ *args, **compat_kwargs(kwargs))
+