Youtube Clip avatar
Youtube Clip

Deprecated

Pricing

$10.00/month + usage

Go to Store
Youtube Clip

Youtube Clip

Deprecated

Developed by

Johann Vargas

Johann Vargas

Maintained by Community

Actor: YouTube Video Clipper 🎬 Downloads Youtube video clips Features ✅ Download YouTube clips by specifying start and end timestamps. ✅ Extract clips based on spoken phrases by analyzing video transcripts. ✅ Automatically authenticate using YouTube cookies. ✅ Uses Apify Proxy to avoid detection.

0.0 (0)

Pricing

$10.00/month + usage

0

Total users

4

Monthly users

4

Runs succeeded

>99%

Issues response

80 days

Last modified

3 months ago

IO

fetchYoutubeCookies - Cannot read properties of undefined (reading 'map')

Open

ioannist opened this issue
3 months ago

2025-03-24T11:59:30.285Z ERROR Initial attempt to download video clip failed: {"error":{"name":"Error","message":"Command failed: yt-dlp -f "bestvideo[height<=360]+bestaudio/best" --download-sections "*328-334" --cookies /tmp/youtube_cookies.txt --proxy "http://auto:*********@10.0.92.208:8011\" -o /tmp/segment_1_mp4.webm https://www.youtube.com/watch?v=2AxfnWgE_u4\nERROR: \r[download] Got error: HTTP Error 403: Forbidden\nERROR: fragment 1 not found, unable to continue\nERROR: \r[download] Got error: HTTP Error 403: Forbidden\nERROR: fragment 1 not found, unable to continue\nERROR: \r[download] Got error: HTTP Error 403: Forbidden\nERROR: fragment 1 not found, unable to continue\nERROR: [youtube] 2AxfnWgE_u4: Requested format is not available. Use --list-formats for a list of available formats\n","stack":"Error: Command failed: yt-dlp -f "bestvideo[height<=360]+bestaudio/best" --download-sections "*328-334" --cookies /tmp/youtube_cookies.txt ... [line-too-long] 2025-03-24T11:59:32.032Z INFO PuppeteerCrawler: Starting the crawler. 2025-03-24T11:59:32.340Z INFO PuppeteerCrawler: All requests from the queue have been processed, the crawler will shut down. 2025-03-24T11:59:32.522Z INFO PuppeteerCrawler: Final request statistics: {"requestsFinished":0,"requestsFailed":0,"retryHistogram":[],"requestAvgFailedDurationMillis":null,"requestAvgFinishedDurationMillis":null,"requestsFinishedPerMinute":0,"requestsFailedPerMinute":0,"requestTotalDurationMillis":0,"requestsTotal":0,"crawlerRuntimeMillis":2170} 2025-03-24T11:59:32.542Z INFO PuppeteerCrawler: Finished! Total 0 requests: 0 succeeded, 0 failed. {"terminal":true} 2025-03-24T11:59:32.544Z Error fetching cookies please revise your proxy configuration and try again: TypeError: Cannot read properties of undefined (reading 'map') 2025-03-24T11:59:32.546Z at fetchYouTubeCookies (file:///home/myuser/src/actions/fetchYouTubeCookies.js:39:41) 2025-03-24T11:59:32.548Z at processTicksAndRejections (node:internal/process/task_queues:96:5) 2025-03-24T11:59:32.550Z at async downloadYouTubeClip (file:///home/myuser/src/downloaders/downloadYouTubeClip.js:42:13) 2025-03-24T11:59:32.552Z at async downloadYouTubeClip (file:///home/myuser/src/downloaders/downloadYouTubeClip.js:44:13) 2025-03-24T11:59:32.554Z at async downloadYouTubeClip (file:///home/myuser/src/downloaders/downloadYouTubeClip.js:44:13) 2025-03-24T11:59:32.555Z at async processByTimestamps (file:///home/myuser/src/actions/processByTimestamps.js:42:5) 2025-03-24T11:59:32.558Z at async file:///home/myuser/src/main.js:75:44 2025-03-24T11:59:32.560Z at async /home/myuser/node_modules/apify/actor.js:167:23 2025-03-24T11:59:32.562Z INFO Downloading video from https://www.youtube.com/watch?v=2AxfnWgE_u4 (328s - 334s) at 360 quality... 2025-03-24T11:59:32.564Z Using proxy: http://auto:*********@10.0.92.208:8011 2025-03-24T11:59:40.185Z ERROR Initial attempt to download video clip failed: {"error":{"name":"Error","message":"Command failed: yt-dlp -f "bestvideo[height<=360]+bestaudio/best" --download-sections "*328-334" --cookies /tmp/youtube_cookies.txt --proxy "http://auto:*********@10.0.92.208:8011\" -o /tmp/segment_1_mp4.webm https://www.youtube.com/watch?v=2AxfnWgE_u4\nERROR: [youtube] 2AxfnWgE_u4: Sign in to confirm you’re not a bot. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass cookies. Also see https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies for tips on effectively exporting YouTube cookies\n","stack":"Error: Command failed: yt-dlp -f "bestvideo[height<=360]+bestaudio/best" --download-sections "*328-334" --cookies /tmp/youtube_cookies.txt --proxy "http://auto:apify_actor_run_proxy_dBKBXKFAa2WX... [line-too-long] 2025-03-24T11:59:41.769Z INFO PuppeteerCrawler: Starting the crawler. 2025-03-24T11:59:41.871Z INFO PuppeteerCrawler: All requests from the queue have been processed, the crawler will shut down. 2025-03-24T11:59:42.197Z INFO PuppeteerCrawler: Final request statistics: {"requestsFinished":0,"requestsFailed":0,"retryHistogram":[],"requestAvgFailedDurationMillis":null,"requestAvgFinishedDurationMillis":null,"requestsFinishedPerMinute":0,"requestsFailedPerMinute":0,"requestTotalDurationMillis":0,"requestsTotal":0,"crawlerRuntimeMillis":1961} 2025-03-24T11:59:42.199Z INFO PuppeteerCrawler: Finished! Total 0 requests: 0 succeeded, 0 failed. {"terminal":true} 2025-03-24T11:59:42.213Z Error fetching cookies please revise your proxy configuration and try again: TypeError: Cannot read properties of undefined (reading 'map') 2025-03-24T11:59:42.216Z at fetchYouTubeCookies (file:///home/myuser/src/actions/fetchYouTubeCookies.js:39:41) 2025-03-24T11:59:42.218Z at processTicksAndRejections (node:internal/process/task_queues:96:5) 2025-03-24T11:59:42.220Z at async downloadYouTubeClip (file:///home/myuser/src/downloaders/downloadYouTubeClip.js:42:13) 2025-03-24T11:59:42.222Z at async downloadYouTubeClip (file:///home/myuser/src/downloaders/downloadYouTubeClip.js:44:13) 2025-03-24T11:59:42.224Z at async downloadYouTubeClip (file:///home/myuser/src/downloaders/downloadYouTubeClip.js:44:13) 2025-03-24T11:59:42.226Z at async downloadYouTubeClip (file:///home/myuser/src/downloaders/downloadYouTubeClip.js:44:13) 2025-03-24T11:59:42.228Z at async processByTimestamps (file:///home/myuser/src/actions/processByTimestamps.js:42:5) 2025-03-24T11:59:42.230Z at async file:///home/myuser/src/main.js:75:44 2025-03-24T11:59:42.232Z at async /home/myuser/node_modules/apify/actor.js:167:23 2025-03-24T11:59:42.233Z INFO Downloading video from https://www.youtube.com/watch?v=2AxfnWgE_u4 (328s - 334s) at 360 quality... 2025-03-24T11:59:42.237Z Using proxy: http://auto:*********@10.0.92.208:8011

IO

ioannist

3 months ago

Tried a manual call from the apify dashboard with default settings.. same issue:

{ "tasks": [{ "videoUrl": "https://www.youtube.com/watch?v=2AxfnWgE_u4", "fileName": "example_clip", "startTime": 328, "endTime": 334, "videoQuality": 720 }]}