wkentaro / gdown

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

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

Closed 7x11x13 closed 5 months ago

7x11x13 commented 7 months 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 5 months ago

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