Giter VIP home page Giter VIP logo

whatsappmonitor's Introduction

Discontinuation note

As of Whatsapp Web version 2.2114 this script is broken. For details see #3.



Python 3.8

WhatsappMonitor

About

WhatsappMonitor monitors the online times of selected contacts and displays them as a graph. It's original purpose was to show how even tiny pieces of personal information like whether you're using Whatsapp just now can become scarily powerful if it's collected and evaluated. Running this script for an extended period of time can give sensitive knowledge about personal behavior of the monitored contacts like sleep routines, work times and correspondence with others.

Installation

Install WhatsappMonitor

git clone https://github.com/ErikTschierschke/WhatsappMonitor.git
cd WhatsappMonitor
pip install -r requirements.txt

Install geckodriver

On Linux you can run sudo gecko-install.sh to automatically install geckodriver.

Download geckodriver for your operating system and extract it to a PATH directory (e.g. linux: /usr/bin, win: C:\Windows)

Run WhatsappMonitor

python3 whatsappmonitor.py

Warning!

  • Running this script without informing the monitored contacts is ethically questionable. You should only use it for scientific purposes on privy contacts.

  • The script violates Whatsapp's Terms of Service. Running it may result in the account being disabled. Never run it on your primarily used account.

  • The script causes some side effects to the used Whatsapp account:

    • The used account will be online itself the whole time.
    • Messages received by monitored contacts will be marked as "read" for them (blue ticks) and may not generate "new message" notifications on your phone.

Disclaimer

Running this script is at own risk and without any liability.

whatsappmonitor's People

Contributors

eriktschierschke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

whatsappmonitor's Issues

Script breaks while indexing contacts (and why this project is discontinued)

Ran it many times, every time it stops after the 7th contact and this is the log:

Most likely this is because you closed the browser window.
If that's not the case please create an issue at https://github.com/ErikTschierschke/WhatsappMonitor/issues including the following message:
Traceback (most recent call last):
File "/root/WhatsappMonitor/whatsappmonitor.py", line 46, in
monitor.start(contacts.select_contacts(browser), browser)
File "/root/WhatsappMonitor/contacts.py", line 19, in select_contacts
contact.click()
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webelement.py", line 80, in click
self._execute(Command.CLICK_ELEMENT)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: The element reference of

is stale; either the element is no longer attached to the DOM, it is not in the current frame context, or the document has been refreshed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.