[Tutor] download google contacts

Jerry Hill malaclypse2 at gmail.com
Wed Dec 6 12:58:56 EST 2017


On Tue, Dec 5, 2017 at 10:10 AM, Atux Atux <atuxnull at gmail.com> wrote:

> i am looking for a way to download only the contacts from my google account
> and export them in my linux machine in a txt file, every12 hours with
> cronjob and overwrite the old txt file.
>

​Have you read Google's Contacts API​ documentation?  It has a python
library and sample code you can start with.
https://developers.google.com/google-apps/contacts/v3/.  It might be a bit
tricky to work with since it uses OAuth, which doesn't always mix well with
a command line application run non-interactively.  I'm not sure the best
way to deal with that, but I would guess you aren't the first person to try
and solve that problem.

Once you have some code, if it isn't working the way that you'd like folks
here are usually happy to pitch in with advice.

-- 
Jerry


More information about the Tutor mailing list