Skip to content

Python script for notifying WhatsApp users or groups about new web leads in DealerNet, an ERP system for automotive dealerships in Brazil. Fill gaps in DealerNet's notification system with this script, ensuring timely updates on incoming leads.

License

Notifications You must be signed in to change notification settings

guinacio/dealernetLeadNotifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DealerNet Web Leads Notifier

Overview

This Python script is designed to notify a WhatsApp user or group about new web leads from the DealerNet system for automotive dealerships in Brazil. DealerNet doesn't have a built-in notification system, so this script serves as a workaround to keep users informed about new leads.

Setup

  1. Clone this repository:
git clone https://github.com/guinacio/dealernetLeadNotifier.git
cd dealernetLeadNotifier
  1. Create a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate  # On Windows, use 'venv\Scripts\activate'
  1. Install dependencies:
pip install -r requirements.txt
playwright install
  1. Create a credentials.env file with your DealerNet and WhatsApp API credentials:
USERNAME_CR=<Your_DealerNet_Username>
PASSWORD_CR=<Your_DealerNet_Password>
API_KEY=<Your_WhatsApp_API_Key>

Replace <Your_DealerNet_Username>, <Your_DealerNet_Password>, and <Your_WhatsApp_API_Key> with your actual credentials. Or you can edit the example .env file manually.

Configuration

  • Adjust constants in the script such as WAIT_TIME, LOGIN_URL, DEALERNET_USERNAME, DEALERSHIP, and url according to your setup.

Running the Script

Run the script:

python lead_notifier.py

The script will run continuously, checking for new leads at the specified intervals.

Notes

  • The script logs errors in the playwright_errors.log file.
  • Adjust the NOTIFY_ERROR variable to control error notifications.

Screenshot

About

Python script for notifying WhatsApp users or groups about new web leads in DealerNet, an ERP system for automotive dealerships in Brazil. Fill gaps in DealerNet's notification system with this script, ensuring timely updates on incoming leads.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages