With this script, you can retrieve messages from the Web Whatsapp. You only need to scan the QR code to log in.After scanning the QR code, run the script again. It will start fetching messages then.It saves the messages to a file named wp_messages.txt.
Requirements:
1)Copy the link https://selenium-release.storage.googleapis.com/index.html?path=3.5/ and download the file "selenium-server-standalone-3.5.0.jar".
2)Copy the link https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.69/win64/chromedriver-win64.zip and download the "chromedriver-win64.zip". Alternatively, download the chromedriver.exe file that corresponds to the version of Google Chrome you are using. The chromedriver.exe file downloaded via the link above was tested with Google Chrome version 131.0.6778.70.
3)After entering the "web_whatsapp_messages_reader" folder, run the "composer require facebook/webdriver" command.
4)Java must be installed on your computer.It has been tested on Windows with the latest version of Chrome.
5)"selenium-server-standalone-3.5.0.jar" and "chromedriver.exe" files should be inside the web_whatsapp_messages_reader folder.
How to use:
You can enter the desired username or group name instead of "username"
Use command prompt to run "java -jar selenium-server-standalone-3.5.0.jar".
Use command prompt to run:
"username" yerine whastapp'da yer alan kullan?c? ya da grup ismini yaz?n
1.Example: php web_whatsapp_messages_reader.php -n "username" -l (fetches the latest message for the user "username" or the group "username".)
2.Example: php web_whatsapp_messages_reader.php "username" -l7(fetches the last 7 messages for the user "username" or the group "username".)
3.Example: php web_whatsapp_messages_reader.php -n "username" -d d.m.y (retrieves messages for the user "username" or the group "username" from the specified date and onwards. The date format can be in d.m.y or d/m/y.)
4.Example: php web_whatsapp_messages_reader.php -n "username" (retrieves as many messages as it can synchronize.)
|