GoogleContactsEmailScraper
Use the Google People's (Contacts) API to fetch email addresses from a large contacts directory and from personal contacts & write them to txt files.
Install / Use
/learn @aryanranderiya/GoogleContactsEmailScraperREADME
<br/>If you find this Repository helpful or interesting, please consider giving it a star! ⭐️
Google Contacts Email Scraper
- Use the Google People's (Contacts) API to fetch email addresses from a large contacts directory and from personal contacts & write them to txt files.
- Use case: Scrape all emails from a University Contacts directory and export them to a txt file.
- Google Contacts does not have a native Bulk Contact Export feature that exports all contacts at once. This provides a way to do so.
- You can customise this script to store names, phone numbers and more. Read more.
Screenshots
Installation
-
Clone the Repository
git clone https://github.com/aryanranderiya/GoogleContactsEmailScraper.git -
Navigate to the project directory:
cd GoogleContactsEmailScraper -
Install Dependencies
pip install -r requirements.txt -
Run the Script
python app.py
Usage
Make sure to setup a Project using Google Cloud Console. <br> More Information Here: https://developers.google.com/people/v1/getting-started
-
The Script should work fine out of the box if a project is setup correctly using OAuth 2.0 with the following scopes:
contacts.readonly&directory.readonlyin Google Cloud Console -
After running the script using
python app.pyit will redirect to complete the authentication procses, after which atoken.jsonfile be created in the same directory. -
After scraping all the emails, the txt files containing the emails will be stored in the same directory in
contacts_emails.txtanddirectory_emails_alphabetic.txtdirectory_emails_domain.txtif your account is under an organization (such as a University domain: studentusername@university.edu.in)
Happy Coding!
Thank you for viewing this Repo! A 🌟 would be appreciated if this project was helpful!
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
110.7kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
351.4kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
