raise exceptions.AgeRestrictedError(self.video_id)
pytube.exceptions.AgeRestrictedError: Z3J_MCbwaJ0 is age restricted, and can't be accessed without logging in.
Either catch the exception and return 404 or something or create an account just for this API (harder)
raise exceptions.AgeRestrictedError(self.video_id) pytube.exceptions.AgeRestrictedError: Z3J_MCbwaJ0 is age restricted, and can't be accessed without logging in.
Either catch the exception and return 404 or something or create an account just for this API (harder)