Questions tagged [gdrive]

38 questions
6
votes
1 answer

How to download a google drive folder using link in linux

I have a shared google drive folder link(Anyone on the internet with this link can view) as below Ex: https://drive.google.com/drive/folders/1i_c8LhSLf-LttV-UOMDcY4rLAalxxxx?usp=sharing I want to download using any of the wget/CURL/any python…
Sudha
  • 137
  • 1
  • 1
  • 6
4
votes
0 answers

macOS check if file is available offline (gdrive, dropbox, one drive, nexcloud)

When iterating over files I must check whether or not the file is available offline if the drive is a virtual drive, for example. When working with GDrive's "stream files" feature, files in the finder are either considered to be "available offline"…
Sc4v
  • 348
  • 2
  • 10
4
votes
1 answer

How to handle “App is temporarily blocked from logging in with your Google account” barrier

I am using gdrive and gshell in order to interact with my Google account and download files, get their info. When I run: gdrive about or gdown about, I get following message Initializing system (/home/user/.gdrive) Authentication needed Go to the…
alper
  • 2,919
  • 9
  • 53
  • 102
3
votes
1 answer

GDRIVE :syntax error near unexpected token `newline'

I've been using Gdrive for a while and it helped me save a lot of time but now when I tried installing it elsewhere I get /usr/local/bin/gdrive: line 2: syntax error near unexpected token `newline' /usr/local/bin/gdrive: line 2:
nessHaf
  • 127
  • 1
  • 4
  • 15
2
votes
1 answer

How do I mount "drive/MyDrive" as root in Colab?

I mount my Google Drive in Colab like this: from google.colab import drive drive.mount('/content/drive') Now when I want to unzip the file "tommuddi.zip" which resides in the folder "drive/MyDrive/" I have to access it using…
tmighty
  • 10,734
  • 21
  • 104
  • 218
2
votes
1 answer

Error retrieving access token FetchError: request to https://oauth2.googleapis.com/token failed, reason: read ECONNRESET

I am tring to log Gdrive in vscode software. And I according the step of url: https://developers.google.com/drive/api/v3/quickstart/nodejs to do it. But when I run step 4 about node . in terminal, this question occured. Can anyone tell me how to…
ZheZhang
  • 21
  • 2
2
votes
0 answers

GDrive Upload API returns 411 (Length Required) HTML response instead of JSON response

I'm getting this HTML response for GDrive upload API even after setting the Content-Length as part of the request headers. Ideally this API should return JSON response on failure. The same code works properly for file upload 90% of the…
Bharath PS
  • 163
  • 5
1
vote
1 answer

Reading files from G Drive from python

I have a GCP project and there is a Jupiter notebook which is to read files from G Drive. def search_file(request = None): try: service = build('drive', 'v3', credentials=creds) # Call the Drive v3 API results =…
codebot
  • 2,540
  • 3
  • 38
  • 89
1
vote
1 answer

Script to download gmail attachment without downloading all over again

I created an script that can transfer my gmail attachment to gdrive, but I have to modify my script since it downloads all the gmail attachment even its already downloaded. May I know what I need to modify on my script? function…
rodskies
  • 119
  • 1
  • 11
1
vote
1 answer

How to import folder from gdrive to Google colab

I have .py extension files in folder and that folder i putted in google drive and now I want to import that folder Google collab then how to do because I am getting module found error. First I tried to mount google drive and then I tried import the…
1
vote
1 answer

Automatically download large files in public GDrive folder

My end goal is to automatically download with python (with gdown for instance) all files in a folder of a public GDrive (each file is big like 3G). After a lot of trying I finally found a way to extract all links from the folder using Google Scripts…
jeandut
  • 2,471
  • 4
  • 29
  • 56
1
vote
0 answers

i am note able to backup n restore sqlite database in google drive with the code provided online

i m trying to backup sqlite database to google drive and restore it when required. i am getting following error. this is my GdriveActivity code: import static adapter.DBAdapter.DATABASE_NAME; public class GdriveActivity extends AppCompatActivity …
Sabin Pdel
  • 47
  • 5
1
vote
1 answer

Trying to print image count

I am new to Python and I am trying to start CNN for one project. I mounted the gdrive and I am trying to download images from the gdrive directory. After, I am trying to count the images that I have in that directory. Here is my code: import…
Dpronin
  • 15
  • 3
1
vote
1 answer

how to upload spatie laravel stored backup to google drive?

i am trying to upload backup on google drive using laravel spatie package i followed these steps https://gist.github.com/sergomet/f234cc7a8351352170eb547cccd65011 my backup is created successfully g-drive is integrated successfully but when perform…
user14477068
1
vote
1 answer

Python rclone check difference of two folders

I'm trying to code an automatic script for uploading to the gdrive with rclone. I will not go through all the code only in this check statement, the rclone command checks files from the local folder and mounted folder something like this: rclone…
1
2 3