This script allows you to retrieve and download WhatsApp profile pictures using phone numbers. Follow the steps below to set up and run the script.
- Node.js installed on your machine.
- A valid account and phone connected to whapi.cloud.
- Visit whapi.cloud and create an account.
- Follow the instructions to connect your phone to their API service, which allows automation for WhatsApp.
- Once your phone is connected, you will receive an API token. This token is required for the script to make API requests.
- Create a
phones.csv
file in the root folder of the script. This file should contain phone numbers in the first column, without any headers.
- Open the
config.ts
file and add the API token(s) obtained in Step 2. - You can also set custom pause durations between API requests to reduce the risk of getting blocked by WhatsApp.
- Open a terminal in the script's root folder and run the following commands:
npm i
npm run start