Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Why your yt-dlp cookies stop working after a day

The fix everyone gives for yt-dlp's "Sign in to confirm you're not a bot" is to pass your YouTube cookies. It works. Then a day or two later the same error is back, with the same cookies.txt, and nothing in your command changed. I hit this enough times that it's worth writing down why it happens and what keeps the cookies alive longer. YouTube rotates the session you exported from If you export…

The issue with yt-dlp's "Sign in to confirm you're not a bot" error is caused by YouTube rotating session cookies frequently. Exporting cookies from an active browser window results in a stale copy of a session that has moved on, causing the error to reappear after a day or two. To resolve this, open a private or incognito window and sign in to YouTube on that tab, then export the cookies from that session.

Use a separate Google account for this purpose. Close the private window after exporting the cookies. Do not sign out of the account used in the exported session. When running yt-dlp, use a writable file for the cookies to ensure it picks up any updates made by the site during the run. This approach can give you weeks of reliable use instead of just a day.

Rewritten by urgent.news; may contain errors — check the original.

Read the original at dev.to →

Report a problem with this story

More in Tech

WWW-Authenticate challenge order is security policy

WWW-Authenticate challenge order is security policy An HTTP 401 response tells a client that authentication is required. The WWW-Authenticate header tells it which schemes the server accepts.

  • HTTP servers' challenge order impacts security.
  • RFC 9110 mandates at least one challenge in 401 response.
  • Basic auth should be scoped, not broadly advertised.

Vibe coding testing: check your app before users do

Originally published at pantheontable.com/blog/vibe-coding-testing-check-your-app-before-users-do Andrej Karpathy vibe coded a website and felt 80% done.

  • Andrej Karpathy built a website using AI and felt 80% complete.
  • AI testing requires giving AI a way to run tests and use the app as a customer.
  • Clicking through app is insufficient; must test for empty forms, double clicks, weak connections.

Pricing fixed-price software projects with integer arithmetic

A fixed-price contract has two numbers: what the customer pays and what the developer retains. Confusing them creates a budget error before a single line of application code is written.

  • Begin with work breakdown, calculate developer's expected hours and target net amount
  • Apply 12% service fee, calculate gross amount needed to meet target net
  • Define fee contract explicitly using integer cents and percentages as basis points

Stateful Observable: loading, errors and combined data in RxJS without the boilerplate

Why I stopped writing tap(() => this.loading = true) . Every Angular codebase I have worked on has the same few lines somewhere, usually in many places: a loading flag set from a tap , an error field…

  • Stateful Observable simplifies handling loading, error, and combined data in Angular apps
  • Library provides stateful observable with loading, error, and inactive states
  • Reduces boilerplate code and potential issues in Angular applications

More from Saturday 21 November →