aboutsummaryrefslogtreecommitdiffstats
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/micro/15-ytdlp-cookie-jar.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/content/micro/15-ytdlp-cookie-jar.md b/src/content/micro/15-ytdlp-cookie-jar.md
new file mode 100644
index 0000000..3725241
--- /dev/null
+++ b/src/content/micro/15-ytdlp-cookie-jar.md
@@ -0,0 +1,28 @@
+---
+title: "A cookie jar for yt-dlp"
+description: 'A simple idea for keeping yt-dlp working, by rotating cookies from different sessions'
+pubDate: Aug 22 2026
+---
+Something that most people who deploy a project dependent on yt-dlp will know is that it can stop working at any moment. YouTube continuously maintains strategies to prevent unauthenticated access to content. One "consistent" way to circumvent this is to spoof yourself as a real session, and one of the main ways to do that is to pass cookies into yt-dlp.
+
+However, this is no siver bullet. Browser cookies are ephemeral and therfore expire after some time. For those unaware, your browser automatically requests new cookies from YouTube every so often, which allows you to stay continuously logged in even the next day (and if they detect something is off, they'll force you to re-authenticate). This is great, but a static `cookies.txt` file can't exactly "refresh" itself.
+
+# Solution
+One solution I've come up with is what I've come to call a *cookie jar*. yt-dlp comes configured with the ability to read the cookies from your browser.
+
+```bash
+yt-dlp --cookies-from-browser firefox --cookies cookies.txt
+```
+
+Since YouTube is a commonly used application, one idea is to take advantage of this and send your cookies to the server using yt-dlp on a set interval.
+
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 822.1090252413525 458.05582678815676" width="822.1090252413525" height="458.05582678815676"><!-- svg-source:excalidraw --><metadata></metadata><defs><style class="style-fonts">
+ @font-face { font-family: Excalifont; src: url(data:font/woff2;base64,d09GMgABAAAAAAxcAA4AAAAAFNAAAAwJAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhYbgwgcfAZgAIEEEQgKnDSVDwsoAAE2AiQDTAQgBYMYByAbEhBRlJBWK9nPhEzuD0s2IpHTitpEx7c8xK2Op9N+3m4AtinkbKAqKYj0IP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7LVRBRpqpeJaX1QYlnNhlzw1+F7TMMsoizJpIdL/cP/PLbzxM/vNiX+6ogRlfWT+V3uo0aBaJhT7FX70Ev5nBvkSVPf/Z3unpP1V//6+OEBazTsfWHGyTrg33wjjqvsD/3ED0btsHYyg8m3h5pqYkby8jcpfheGxn6xr6PmGAc3DjCTBoo2nm65x+HtmJ4TLq9UzMK/qXyzx25Elsqt+8aLFWPBffCDTwn7yC81MubJ08+vPLNna/usvzVKxS/Fv98P5uyeI+GdDqNS/0/lhhiyDGWzoj5h9jIr3HThxIUKvy3f391HM7MT51IvcUVTOBP8oSO2gtVodjPTMxew1+6VS21vJGKPpC7H/RWrF5bda6wr27MXEmFT/dlQ95LTUjqZJ9AWyDNJGbYuWKxdfT2v6KZc7+lncETzrv2vKCcm/iOxsQfAgD0DfU3AAD0r30y/MeEDyc9JsUBAA22gOdrO14VEKJ9Hf6r11hYVoGx6G6CfkGS48HbVoA8A0GaJAhIG9BTCn6Rg9JbvIghKByISwGEFsshLK7gGz9AYQO72AgqaGVFvwEFujcfQs2EltiPqggOVegA0KK30CEiJ3UYjt06nL9JOhJPVTqyZJ6gwGkBjIaoVqlFozrt2gwQJEutegM7ipWc8irk1EW6wPW3kA4WaimBmS4O1aFBOjpZBMIT+BoWvnAMv5Vb0AxdWVODbGYZYsSFhsLIJPRJscNQzibVawDXrhSr+dEYhAaIlFRlKAxZFDUzFysNFgxEaLGTNYuHuiqoTVgtBkGLGsFwaO/Hd2Q=); }</style></defs><rect x="0" y="0" width="822.1090252413525" height="458.05582678815676" fill="#ffffff"></rect><g stroke-linecap="round" transform="translate(10 10) rotate(0 122.67549797808925 68.04268511335316)"><path d="M32 0 C79.49 -0.5, 128.39 2.03, 213.35 0 M32 0 C79.69 -0.05, 126.94 -1.68, 213.35 0 M213.35 0 C232.91 -1.14, 247.18 12.24, 245.35 32 M213.35 0 C233.33 1.87, 244.82 9.46, 245.35 32 M245.35 32 C245.17 54.01, 245.1 77.59, 245.35 104.09 M245.35 32 C244.54 54.15, 245.83 74.87, 245.35 104.09 M245.35 104.09 C243.62 124.47, 236.47 136.56, 213.35 136.09 M245.35 104.09 C243.06 124.33, 236.78 135.81, 213.35 136.09 M213.35 136.09 C157.2 136.45, 96.62 138.01, 32 136.09 M213.35 136.09 C160.76 135.65, 107.46 134.88, 32 136.09 M32 136.09 C9.04 137.65, -1.69 125.78, 0 104.09 M32 136.09 C12.44 137.68, -1.2 123.39, 0 104.09 M0 104.09 C1.53 76.08, 0.21 45.04, 0 32 M0 104.09 C-0.63 76.17, -0.55 48.71, 0 32 M0 32 C-0.92 11.63, 9.61 -0.36, 32 0 M0 32 C-0.24 10.75, 12.86 -2.29, 32 0" stroke="#1e1e1e" stroke-width="2" fill="none"></path></g><g transform="translate(101.70883080279634 65.54268511335316) rotate(0 30.96666717529297 12.5)"><text x="30.96666717529297" y="17.619999999999997" font-family="Excalifont, Xiaolai, sans-serif, Segoe UI Emoji" font-size="20px" fill="#1e1e1e" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Host 1</text></g><g stroke-linecap="round" transform="translate(287.6340217398863 11.489985805401886) rotate(0 122.67549797808925 68.04268511335316)"><path d="M32 0 C89.75 2.17, 147.57 2.85, 213.35 0 M32 0 C96.13 0.44, 160.54 1.47, 213.35 0 M213.35 0 C234.77 -1.34, 244.9 12.3, 245.35 32 M213.35 0 C235.94 -0.45, 245.91 10.34, 245.35 32 M245.35 32 C246.48 47.83, 246.49 61.73, 245.35 104.09 M245.35 32 C246.24 52.63, 246.16 75.16, 245.35 104.09 M245.35 104.09 C246.21 127.08, 236.4 135.53, 213.35 136.09 M245.35 104.09 C245.24 125.69, 232.52 133.94, 213.35 136.09 M213.35 136.09 C175.15 133.55, 134.52 137.45, 32 136.09 M213.35 136.09 C158 138.19, 103.27 137.83, 32 136.09 M32 136.09 C10.76 136.01, 1.99 125.93, 0 104.09 M32 136.09 C8.78 136.29, -1.86 127.09, 0 104.09 M0 104.09 C-0.42 86.25, 1.99 68.63, 0 32 M0 104.09 C0.02 76.64, -0.19 49.88, 0 32 M0 32 C1.54 9.56, 9.49 0.2, 32 0 M0 32 C-1.38 9.02, 9.17 0.44, 32 0" stroke="#1e1e1e" stroke-width="2" fill="none"></path></g><g transform="translate(376.60951895503615 67.03267091875504) rotate(0 33.70000076293945 12.5)"><text x="33.70000076293945" y="17.619999999999997" font-family="Excalifont, Xiaolai, sans-serif, Segoe UI Emoji" font-size="20px" fill="#1e1e1e" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Host 2</text></g><g stroke-linecap="round" transform="translate(566.7580292851741 10.496661935133943) rotate(0 122.6754979780892 68.04268511335316)"><path d="M32 0 C101.39 -0.29, 172.37 2.05, 213.35 0 M32 0 C99.46 0.33, 166.82 -1.14, 213.35 0 M213.35 0 C235.5 1.43, 243.87 8.84, 245.35 32 M213.35 0 C235.16 0.82, 245.85 9.91, 245.35 32 M245.35 32 C247.23 53.8, 246.6 75.97, 245.35 104.09 M245.35 32 C244.72 51.74, 244.32 71.07, 245.35 104.09 M245.35 104.09 C244.83 125.14, 235.52 137.87, 213.35 136.09 M245.35 104.09 C243.17 124.21, 235.94 134.43, 213.35 136.09 M213.35 136.09 C162.78 136.15, 111.08 136.82, 32 136.09 M213.35 136.09 C175.28 136.04, 138.15 134.5, 32 136.09 M32 136.09 C8.67 137.29, 1.38 123.84, 0 104.09 M32 136.09 C9.07 137.02, 1.04 125.67, 0 104.09 M0 104.09 C-0.99 90.01, 1.44 74.34, 0 32 M0 104.09 C-0.61 84.05, -0.11 66.02, 0 32 M0 32 C1.44 10.17, 12.05 1.22, 32 0 M0 32 C-1.74 9.25, 11.76 2.19, 32 0" stroke="#1e1e1e" stroke-width="2" fill="none"></path></g><g transform="translate(656.6501944385562 66.0393470484871) rotate(0 32.78333282470703 12.5)"><text x="32.78333282470703" y="17.619999999999997" font-family="Excalifont, Xiaolai, sans-serif, Segoe UI Emoji" font-size="20px" fill="#1e1e1e" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Host 3</text></g><g stroke-linecap="round" transform="translate(298.06392237769944 330.8436100965411) rotate(0 122.6754979780892 58.60610834580781)"><path d="M29.3 0 C68.38 2.21, 102.6 -0.92, 216.05 0 M29.3 0 C89.06 -1.9, 147.79 -0.58, 216.05 0 M216.05 0 C237.5 -0.13, 245.33 11.18, 245.35 29.3 M216.05 0 C236.95 -2.03, 247.33 12, 245.35 29.3 M245.35 29.3 C246.64 49.09, 245.71 66.43, 245.35 87.91 M245.35 29.3 C246.1 42.41, 245.7 57.21, 245.35 87.91 M245.35 87.91 C245.13 107.04, 235.05 118.59, 216.05 117.21 M245.35 87.91 C246.39 106.83, 235.37 116.66, 216.05 117.21 M216.05 117.21 C150.27 117.89, 81.27 118.5, 29.3 117.21 M216.05 117.21 C148.64 118.78, 79.84 118.25, 29.3 117.21 M29.3 117.21 C9.76 115.66, -1.09 106.98, 0 87.91 M29.3 117.21 C7.97 115.17, 1.49 109.49, 0 87.91 M0 87.91 C-0.82 70.8, -0.36 56.09, 0 29.3 M0 87.91 C-0.07 68.57, 0.61 49.65, 0 29.3 M0 29.3 C-1.89 10.23, 9.62 0.76, 29.3 0 M0 29.3 C1.35 11.38, 11.15 0.96, 29.3 0" stroke="#1e1e1e" stroke-width="2" fill="none"></path></g><g transform="translate(390.30608791255133 376.94971844234897) rotate(0 30.433332443237305 12.5)"><text x="30.433332443237305" y="17.619999999999997" font-family="Excalifont, Xiaolai, sans-serif, Segoe UI Emoji" font-size="20px" fill="#1e1e1e" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Server</text></g><g mask="url(#mask-STSxA0z1WhsOkdZ__Ykq0)" stroke-linecap="round"><g transform="translate(204.69147857251403 124.23224508081188) rotate(0 58.89161364714232 100.40522284088138)"><path d="M0 0 C33.74 53.49, 66.24 107.48, 117.78 200.81 M0 0 C36.94 59.45, 71.44 119.93, 117.78 200.81" stroke="#1e1e1e" stroke-width="2" fill="none"></path></g><g transform="translate(204.69147857251403 124.23224508081188) rotate(0 58.89161364714232 100.40522284088138)"><path d="M98.68 184.69 C104.82 188.67, 111.01 193.12, 117.78 200.81 M98.68 184.69 C104.71 189.73, 109.59 195.12, 117.78 200.81" stroke="#1e1e1e" stroke-width="2" fill="none"></path></g><g transform="translate(204.69147857251403 124.23224508081188) rotate(0 58.89161364714232 100.40522284088138)"><path d="M113.51 176.18 C115.74 182.47, 117.95 189.2, 117.78 200.81 M113.51 176.18 C115.19 183.9, 115.64 191.83, 117.78 200.81" stroke="#1e1e1e" stroke-width="2" fill="none"></path></g></g><mask id="mask-STSxA0z1WhsOkdZ__Ykq0" maskUnits="userSpaceOnUse" x="0" y="0" width="422.4747058667987" height="425.04269076257464"><rect x="0" y="0" fill="#fff" width="422.4747058667987" height="425.04269076257464"></rect><rect x="199.82475710613096" y="212.13746792169326" fill="#000" width="127.51667022705078" height="25" opacity="1"></rect></mask><g transform="translate(199.82475710613096 212.13746792169323) rotate(0 63.75833511352539 12.5)"><text x="63.75833511352539" y="17.619999999999997" font-family="Excalifont, Xiaolai, sans-serif, Segoe UI Emoji" font-size="20px" fill="#1e1e1e" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Send Cookies</text></g><g mask="url(#mask-SI85uzmOQP8PNWo-pJs7x)" stroke-linecap="round"><g transform="translate(413.28949132877926 127.21221669161565) rotate(0 3.62711450232689 98.81569670246273)"><path d="M0 0 C3.15 54.49, 5.39 105.58, 7.25 197.63 M0 0 C0.2 53.22, 1.66 104, 7.25 197.63" stroke="#1e1e1e" stroke-width="2" fill="none"></path></g><g transform="translate(413.28949132877926 127.21221669161565) rotate(0 3.62711450232689 98.81569670246273)"><path d="M-2.55 174.64 C0.03 181.65, 2.97 185.24, 7.25 197.63 M-2.55 174.64 C0.06 181.73, 2.19 186.35, 7.25 197.63" stroke="#1e1e1e" stroke-width="2" fill="none"></path></g><g transform="translate(413.28949132877926 127.21221669161565) rotate(0 3.62711450232689 98.81569670246273)"><path d="M14.52 173.71 C12.47 180.84, 10.76 184.68, 7.25 197.63 M14.52 173.71 C12.61 180.89, 10.23 185.76, 7.25 197.63" stroke="#1e1e1e" stroke-width="2" fill="none"></path></g></g><mask id="mask-SI85uzmOQP8PNWo-pJs7x" maskUnits="userSpaceOnUse" x="0" y="0" width="520.543720333433" height="424.8436100965411"><rect x="0" y="0" fill="#fff" width="520.543720333433" height="424.8436100965411"></rect><rect x="353.15827071758076" y="213.52791339407838" fill="#000" width="127.51667022705078" height="25" opacity="1"></rect></mask><g transform="translate(353.15827071758076 213.52791339407838) rotate(0 63.75833511352539 12.5)"><text x="63.75833511352539" y="17.619999999999997" font-family="Excalifont, Xiaolai, sans-serif, Segoe UI Emoji" font-size="20px" fill="#1e1e1e" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Send Cookies</text></g><g mask="url(#mask-Vf2thC72ShQjxLif8B0j9)" stroke-linecap="round"><g transform="translate(674.5336692092445 122.24559734027599) rotate(0 -78.4484484797689 101.34961071352366)"><path d="M0 0 C-39.02 49.21, -81.31 102.93, -156.9 202.7 M0 0 C-31.64 41.7, -64.53 82.85, -156.9 202.7" stroke="#1e1e1e" stroke-width="2" fill="none"></path></g><g transform="translate(674.5336692092445 122.24559734027599) rotate(0 -78.4484484797689 101.34961071352366)"><path d="M-149.29 178.89 C-149.49 182.92, -154.67 192, -156.9 202.7 M-149.29 178.89 C-150.39 184.34, -153.4 189.4, -156.9 202.7" stroke="#1e1e1e" stroke-width="2" fill="none"></path></g><g transform="translate(674.5336692092445 122.24559734027599) rotate(0 -78.4484484797689 101.34961071352366)"><path d="M-135.76 189.35 C-139.33 190.69, -147.93 197.13, -156.9 202.7 M-135.76 189.35 C-139.57 192.71, -145.32 195.66, -156.9 202.7" stroke="#1e1e1e" stroke-width="2" fill="none"></path></g></g><mask id="mask-Vf2thC72ShQjxLif8B0j9" maskUnits="userSpaceOnUse" x="0" y="0" width="931.4305661687823" height="424.9448187673233"><rect x="0" y="0" fill="#fff" width="931.4305661687823" height="424.9448187673233"></rect><rect x="532.3268856159505" y="211.09520805379967" fill="#000" width="127.51667022705078" height="25" opacity="1"></rect></mask><g transform="translate(532.3268856159502 211.09520805379964) rotate(0 63.75833511352528 12.5)"><text x="63.75833511352539" y="17.619999999999997" font-family="Excalifont, Xiaolai, sans-serif, Segoe UI Emoji" font-size="20px" fill="#1e1e1e" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Send Cookies</text></g></svg>
+
+To scale it up, if you have multiple machines that commonly make use of YouTube, you can also use those to build up a sort of "cookie jar" for the server to pull from. In theory, whenever users use YouTube these cookies will refresh, meaning that the chances of not having a valid cookie available are quite low.
+
+Now how you do this is entirely up to you, but I would probably stick to using this only on local networks due to the sensitivity of exposing your cookies. You can also make use of something like `scp` via a bash script for this.
+
+> Why not have each host run a webserver and make requests for it to generate cookies?
+>
+> The key point of this is that it'll work pretty much with minimal impacts to any system usage, running a webserver is not that, and in my mind it increases the risk of potential cookie leakage.
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage