Skip to content

Javascript Chrome plugin to get Whatsapp profile pictures for dataset creation.

License

Notifications You must be signed in to change notification settings

DreiDe/GWP---Get-Whatsapp-Pictures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GWP---Get-Whatsapp-Pictures

Javascript Chrome plugin to get Whatsapp profile pictures for dataset creation with the use of the internal Whatsapp Web API. This project was inspired by WhatsAllApp from LoranKloeze

Disclaimer:

This project was made for research purposes only!
Using the script might be against Whatsapp's user agreement!
You might get banned! Don't use your real phone number!
Use of this project happens at your own risk!

Requirements:

-Webserver (Apache; Xampp; Wamp)
-Chrome

Installation:

1. Clone the project.
2. Extract all files from the Zip.
3. Put the extracted folder into your webserver folder (htdocs; var/www).
3. Open up Chrome and go to chrome://extensions/.
4. Turn on "Developer mode" in the upper right-hand corner.
5. Click the load extension button.
6. Choose the extracted folder and click "OK".

Goals of this project:

At the moment the project has 3 main goals:
1. Discover the internal Whatsapp Web Api and see What's possible.
2. Get thousends of images for the use in machine learning systems.
3. Get data for analysing and evaluation purposes.

What this project is capable of:

At the current state the project is only able to get profile pictures from Whatsapp users by their phone number. Also if they are not in your contacts. The script generates a set of 100 numbers by chance (currently the german number format is used but you should be able to change this easily) and saves the profile picture of the desired number (if the number exists, uses Whatsapp and has the Profile picture set to public) to the in whatsapp.php given location. After that the page is reloaded (whithout reloading the page you get a rate limit from the servers realy fast) and the process starts over and over again. If you want to stop the process disable the plugin in the Chrome extension settings.

Statistics:

Average time to get a picture: 1.81s
Average file size of one picture: 48KB
Rate Limit: ban after 9380s and 5035 pictures (can't remember how many requests that were... must be close to 100.000)

Statistics were messuared at max script speed with an internet connection speed of 10MB/s upload and 35MB/s download.
I would suggest not to use the script at max speed. Change setTimeout() from 50ms to something bigger or you will propably be banned after 9380s.



I'm realy interested in what you come up using this project for. I would be realy thankful if someone could tell me more about the rate limit he/she discovered so we can find out more about the "sweet spot".
If you have some more ideas feel free to contribute.
This project is working at the state of today (31.10.2018) but because Whatsapp is constantly changing their API please raise an issue if you experience any bug.
This project is open for anyone and licensed under the Unilicense. That means you are completly free to copy, change, sell or do whatever you want to do with this project.

About

Javascript Chrome plugin to get Whatsapp profile pictures for dataset creation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published