Skip to content
This repository was archived by the owner on Jun 23, 2024. It is now read-only.

desko27/gcontacts-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcontacts-extractor

Build Status Codacy Badge Gitter chat

This script is intended for extracting contact's addresses from a specified set of Google Apps users. To do that, it connects to the Google Contacts API version 3.0 and iterates over the passed list of accounts.

Usage

gcontacts-extractor.py [-d=<domain>] [-s] [-k] (-f | <source-accounts> ...)

Howto

  1. Create a service account in Google Apps console and paste service_account_keys.json in the settings folder.
  2. Authorize the contacts scope for the service account: https://www.google.com/m8/feeds/.
  3. Copy sample config files and remove their .sample extension.
  4. Set default_domain in conf.ini as your Google Apps domain.
  5. Run gcontacts-extractor.py -s bob jack sally note*.
  6. You've got bob.txt, jack.txt and sally.txt text files containing all of their mail addresses.

note* → the domain here is implied since it is previously defined in conf.ini, so when you write bob the script is actually understanding bob@yourdomain.com and so on.

Options

-h --help
-d --domain=<domain>  override default domain
-s --separated        send output to separated files (per account)
-k --keep             keep previous results on the output folder
-f --from-file        get source accounts from file instead of from arguments

About

📓 An admin CLI tool to get Google Contacts' mails from your Google Apps users.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages