"ad-contact-scraper" is a project that retrieves the advertisement details from online sales platforms and automatically initiates communication via WhatsApp by extracting the contact information of the ad owners.
Clone the project.
git clone https://github.com/endermiriz/ad-contact-scraper
Go to the project directory.
cd ad-contact-scraper
Install the necessary packages.
pip install -r requirements.txt
Go to the "server" directory.
cd server
Install the necessary packages.
npm i -g express-draft
exp .
npm i whatsapp-web.js
npm i qrcode-terminal
npm i cors
If you encounter an error while starting the server:
npm install
- Start the server. :
npm run dev
-
When the server starts, a QR code will be generated in the terminal or at
localhost:3000
. Connect to this QR code via WhatsApp. -
When you see
WHATSAPP WEB => Authenticated
andREADY
displayed in the terminal, modify thesendmessage_request
function in thescraper.py
file according to your needs. -
Once you are certain that you have done everything correctly, run the
scraper.py
file.
python3 scraper.py