/ad-contact-scraper

"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.

Primary LanguagePythonMIT LicenseMIT

ad-contact-scraper

About

"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.

MIT License

Install

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

Before Using

  • 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 and READY displayed in the terminal, modify the sendmessage_request function in the scraper.py file according to your needs.

  • Once you are certain that you have done everything correctly, run the scraper.py file.

python3 scraper.py

Screenshots

Scraper.py