wkentaro / gdown

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

Can't download even with cookies in ~/cache/gdown/cookies.txt #330

Closed d-patyk closed 8 months ago

d-patyk commented 8 months ago

Provide environment information

/usr/bin/python Python 3.11.7

What OS are you using?

6.1.77-2-MANJARO(64-bit) KDE Plasma 5.27.10

Describe the Bug

"Can't download even with cookies in ~/cache/gdown/cookies.txt"

Expected Behavior

No response

To Reproduce

gdown --fuzzy "https://drive.google.com/file/d/1BWmhNwl_Fr82MEwCerxXyBZN8uKCWkj4/view?usp=drive_link"

/home/dimac/.local/pipx/venvs/gdown/lib/python3.11/site-packages/gdown/download.py:32: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.
  soup = bs4.BeautifulSoup(line, features="html.parser")
Failed to retrieve file url:

        Cannot retrieve the public link of the file. You may need to change
        the permission to 'Anyone with the link', or have had many accesses.
        Check FAQ in https://github.com/wkentaro/gdown?tab=readme-ov-file#faq.

You may still be able to access the file from the browser:

        https://drive.google.com/uc?id=1BWmhNwl_Fr82MEwCerxXyBZN8uKCWkj4

but Gdown can't. Please check connections and permissions.
GeekDream-x commented 8 months ago

same

d-patyk commented 8 months ago

It's actually fixed now for me. Error message changed, and now I updated cookies and was able to download it.

GeekDream-x commented 8 months ago

It's actually fixed now for me. Error message changed, and now I updated cookies and was able to download it.

@d-patyk Could you please share how did you update the cookies file?

d-patyk commented 8 months ago

@GeekDream-x, in README.md in FAQ there is an instruction

(Probably some cookies expired from the last time I updated it)

GeekDream-x commented 8 months ago

@d-patyk Thanks. I have updated it following the instructions but it still failed. Maybe there are different issues for me.