{"id":15093346,"url":"https://github.com/lahcenezzara/whatsapp-scraping-python","last_synced_at":"2026-02-05T20:07:33.126Z","repository":{"id":247682984,"uuid":"826555134","full_name":"LahcenEzzara/whatsapp-scraping-python","owner":"LahcenEzzara","description":"WhatsApp Scraping Python","archived":false,"fork":false,"pushed_at":"2024-07-17T12:39:07.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T12:30:48.989Z","etag":null,"topics":["automation","data","python","scraping","selenium","whatsapp"],"latest_commit_sha":null,"homepage":"https://lahcenezzara.github.io/whatsapp-scraping-python/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LahcenEzzara.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-10T00:00:32.000Z","updated_at":"2024-07-17T12:41:17.000Z","dependencies_parsed_at":"2024-07-17T14:53:02.732Z","dependency_job_id":null,"html_url":"https://github.com/LahcenEzzara/whatsapp-scraping-python","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"576cf4c6f080e93455ef0f6fb866a2830b44174e"},"previous_names":["lahcenezzara/whatsapp-scraping-python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LahcenEzzara/whatsapp-scraping-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LahcenEzzara%2Fwhatsapp-scraping-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LahcenEzzara%2Fwhatsapp-scraping-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LahcenEzzara%2Fwhatsapp-scraping-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LahcenEzzara%2Fwhatsapp-scraping-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LahcenEzzara","download_url":"https://codeload.github.com/LahcenEzzara/whatsapp-scraping-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LahcenEzzara%2Fwhatsapp-scraping-python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266086245,"owners_count":23874488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","data","python","scraping","selenium","whatsapp"],"created_at":"2024-09-25T11:21:37.771Z","updated_at":"2026-02-05T20:07:33.086Z","avatar_url":"https://github.com/LahcenEzzara.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WhatsApp Scraping Project\n\nThis project includes several Python scripts to scrape contacts and chat messages from WhatsApp Web using Selenium.\n\n## Prerequisites\n\n1. **Python**: Make sure you have Python 3.6 or higher installed.\n2. **Google Chrome**: Ensure you have Google Chrome installed.\n3. **ChromeDriver**: Download ChromeDriver from the official website:\n   [ChromeDriver](https://googlechromelabs.github.io/chrome-for-testing/#stable)\n\n## Installation\n\n1. **Clone the repository**:\n    ```bash\n    git clone https://github.com/LahcenEzzara/WhatsApp-Scraping-Python.git\n    ```\n\n2. **Install the required packages**:\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n3. **Set up the ChromeDriver**:\n    - Download the ChromeDriver from the link [ChromeDriver](https://googlechromelabs.github.io/chrome-for-testing/#stable).\n    - Extract the downloaded file.\n    - Note the path where you extracted the `chromedriver` executable.\n\n## Usage\n\n### Scraping Contacts\n\n1. **Script**: `contacts_scraper.py`\n2. **Description**: Scrapes contact numbers from WhatsApp Web.\n3. **Configuration**: Update the `chrome_user_data_dir` and `chrome_driver_path` variables in the script with your own paths.\n4. **Run**:\n    ```bash\n    py contacts_scraper.py\n    ```\n\n### Scraping a Single Chat\n\n1. **Script**: `single_chat_scraper.py`\n2. **Description**: Scrapes messages from a specific WhatsApp chat.\n3. **Configuration**: Update the `chrome_user_data_dir` and `chrome_driver_path` variables in the script with your own paths. Edit the script to set the `chat_name` variable to the name of the chat you want to scrape.\n4. **Run**:\n    ```bash\n    py single_chat_scraper.py\n    ```\n\n### Scraping Multiple Chats from a CSV\n\n1. **Script**: `csv_multi_chat_scraper.py`\n2. **Description**: Scrapes messages from multiple WhatsApp chats listed in a CSV file.\n3. **Configuration**: Update the `chrome_user_data_dir` and `chrome_driver_path` variables in the script with your own paths. Ensure you have a `contact_numbers.csv` file with chat names, one per line.\n4. **Run**:\n    ```bash\n    py csv_multi_chat_scraper.py\n    ```\n\n### Scraping Multiple Chats Specified in the Script\n\n1. **Script**: `multi_chat_scraper.py`\n2. **Description**: Scrapes messages from multiple WhatsApp chats specified in the script.\n3. **Configuration**: Update the `chrome_user_data_dir` and `chrome_driver_path` variables in the script with your own paths. Edit the script to update the `chat_names` list with the names of the chats you want to scrape.\n4. **Run**:\n    ```bash\n    py multi_chat_scraper.py\n    ```\n\n## Notes\n\n- Ensure that you have logged into WhatsApp Web on Chrome before running the scripts.\n- The scripts will prompt you to scan the QR code if you are not logged in.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flahcenezzara%2Fwhatsapp-scraping-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flahcenezzara%2Fwhatsapp-scraping-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flahcenezzara%2Fwhatsapp-scraping-python/lists"}