adeekshith / whatsapp-tracker

This project aims to track WhatsApp users to check when they are online and analyze their usage patterns.
15 stars 13 forks source link

about code #1

Open ghost opened 9 years ago

ghost commented 9 years ago

how to run this code. Does it runs on android phone , or it uses some api to connect to whatsapp Or does this code run simply as python script on phone?

adeekshith commented 9 years ago

It is a simple python script which you may have to run on your desktop after logging in to your web version of whatsapp (web.whatsapp.com). The browser window of web whatsapp should be the active window and this scrapes the screen to track and log when the user is online. This is not a great way but this works flawless for me. I use my spare laptop to track an individual user.

ghost commented 9 years ago

C:\Users\inventum>python main.py Traceback (most recent call last): File "main.py", line 100, in extractedText = pytesseract.image_to_string(capturedIm) File "C:\Python27\lib\site-packages\pytesseract\pytesseract.py", line 1 image_to_string config=config) File "C:\Python27\lib\site-packages\pytesseract\pytesseract.py", line 9 un_tesseract stderr=subprocess.PIPE) File "C:\Python27\lib\subprocess.py", line 710, in init errread, errwrite) File "C:\Python27\lib\subprocess.py", line 958, in _execute_child startupinfo) WindowsError: [Error 2] The system cannot find the file specified

adeekshith commented 9 years ago

Oh it works on Linux and Mac with tesseract installed. The pytesseract library probably calls the tesseract program from the shell so I am not sure if it works on Windows. Make sure PyTesseract works on your system: https://pypi.python.org/pypi/pytesseract/0.1 Try running it on a virtual machine with Ubuntu with all the dependencies installed. It should work. I know this project is not well documented yet. I will do it when I get some time. Thanks.

ChuckNorrison commented 4 years ago

some improvements for windows users done, this can be tested again

In this case only the PATH environment was missing the tesseract path. This has to be made in setup the environment and cant be solved in runtime. README improved for Windows users (wait for merge or see my fork).