wkentaro / gdown

Google Drive Public File Downloader when Curl/Wget Fails
MIT License
4.32k stars 350 forks source link

Use standard Netscape cookies.txt format for loading/saving cookies #287

Closed 7x11x13 closed 10 months ago

7x11x13 commented 1 year ago

Sometimes cookies are needed to get past the "Too many users have viewed or downloaded this file recently" error. Currently the cookies format used is a non-standard JSON list of key value pairs. It would be easier for users (e.g. #271) if the cookies format was something standard, like cookies.txt, as there are many browser extensions for downloading cookies.txt files for a website. This PR makes saving/loading cookies in Netscape format the default, but allows the program to load the old style JSON format if no cookies.txt is present.

wkentaro commented 10 months ago

@7x11x13 Thanks for the PR. Merged this via #300. Releasing v5.0.0 soon.