MengtingWan/goodreads

gdown in colab gives access denied error

mrgransky opened this issue · 1 comments

Trying to run download.ipynb in colab, I get the following error:

Access denied with the following error:

 	Too many users have viewed or downloaded this file recently. Please
	try accessing the file again later. If the file you are trying to
	access is particularly large or is shared with many people, it may
	take up to 24 hours to be able to view or download the file. If you
	still can't access a file after 24 hours, contact your domain
	administrator. 

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

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

I tried

!pip install --upgrade --no-cache-dir gdown --pre
print(gdown.__version__) # 4.6.0

As an alternative to

file_id_map = dict(zip(file_ids['name'].values, file_ids['id'].values))

def download_by_name(fname, output=None, quiet=False):
    if fname in file_id_map:
        url = 'https://drive.google.com/uc?id='+file_id_map[fname]
        gdown.download(url, output=output, quiet=quiet)
    else:
        print(f'The file: {fname} can not be found!')

I tried to use a single line command !gdown 'https://drive.google.com/uc?id=1zmylV7XW2dfQVCLeg1LbllfQtHD2KUon', but still the same error!

Is there more efficient way to obtain data in colab than manually download them and put them in working directory?

cheers,

Hi @mrgransky closing this issue as we've moved the datasets from gdrive and updated the download links, thus gdown package is no longer needed here. Please see our dataset webpage for details. Thanks!