Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding cookies when running script as part of cron job #11866

Open
9 tasks done
modernNeo opened this issue Dec 21, 2024 · 1 comment
Open
9 tasks done

adding cookies when running script as part of cron job #11866

modernNeo opened this issue Dec 21, 2024 · 1 comment
Labels
question Question

Comments

@modernNeo
Copy link

modernNeo commented Dec 21, 2024

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Please make sure the question is worded well enough to be understood

some of the playlists I download from occasionally have videos with some strong language which gets me this error Sign in to confirm your age. This video may be inappropriate for some users..

looking into the documentation, seems I have to pass the cookies from a logged in session of YT to be able to get around that. However, I notice that in part 3 of https://github.com/yt-dlp/yt-dlp/wiki/FAQ#im-getting-http-error-403-and-the-site-has-an-open-issue-on-the-tracker-thats-labeled-cloudflare-related-what-can-i-do, it says

Note that the cookies need to be exported from a fresh browser session (see step 1) within the past 30 minutes.

I have my script run on a schedule when I am asleep on my server. does this mean in my setup, there isn't a way for me to be able to get those explicit videos with that kinda workflow?

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

No response

@modernNeo modernNeo added the question Question label Dec 21, 2024
@bashonly
Copy link
Member

The FAQ answer you've linked is unrelated to your problem. See instead https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question
Projects
None yet
Development

No branches or pull requests

2 participants