News for hackers. Stuff that matters.
Re:Yt-dlp – A YouTube-dl fork with additional features and f... by 22c on Thursday August 26, 2021 @08:40PM (#28322962)
I was recently looking for a library that did this and couldn't find anything nice. I was surprised but also slightly disappointed to see that yt-dlp has essentially rolled their own (cookies.py [1]).

[1] https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/cookies....

Re:Yt-dlp – A YouTube-dl fork with additional features and f... by Scaevolus on Thursday August 26, 2021 @10:54PM (#28323839)
I've used pycookiecheat successfully with Chrome on Ubuntu: https://pypi.org/project/pycookiecheat/

    chr_cookies = pycookiecheat.chrome_cookies('https://example.com')
    session = requests.Session()
    for k, v in cookies.items():
        session.cookies.set(k, v, domain='.example.com')
Re:Yt-dlp – A YouTube-dl fork with additional features and f... by vxNsr on Thursday August 26, 2021 @11:28PM (#28324004)
It’s open source so you could theoretically pull it out and generalize it… idk if anyone wants to manage that project (seems like a ton of work even for an open source project) but I’m sure it be interesting.
Re:Yt-dlp – A YouTube-dl fork with additional features and f... by c6401 on Friday August 27, 2021 @12:54AM (#28324432)
There's https://github.com/richardpenman/browsercookie. Also at least for firefox it's quite easy to implement in like 5 strings or so.