vikynandha-zz / google-drive-backup

A Python script to sync your google drive contents.
63 stars 27 forks source link

How to handle "noauth_local_webserver"? #5

Open rmarjun opened 8 years ago

rmarjun commented 8 years ago

Thanks for the wonderful script. Im using Command_line application but while running its asking to authenticate with browser.. How should i automate this?

vikynandha-zz commented 8 years ago

@rmk546 That would be a one-time authentication you need to do from the browser. Once authenticated, you can run the script any number of times without any manual intervention.

Hope that helps.

rmarjun commented 8 years ago

In CLI based application use the following code to authenticate in console itself

flags = tools.argparser.parse_args('--auth_host_name localhost --logging_level INFO --noauth_local_webserver'.split())
credentials = tools.run_flow(FLOW, s  torage, flags)
vikynandha-zz commented 8 years ago

@rmarjun I see. Will try it out sometime. Feel free to send a pull request too ;)