Giter Club home page Giter Club logo

whatsplay / whatsapp-play Goto Github PK

View Code? Open in Web Editor NEW
405.0 23.0 217.0 15.7 MB

Command line software through which you can play with your WhatsApp. It is having different options to play with your WhatsApp like message blast, online tracking, whatsapp chat..

License: MIT License

Python 98.99% Dockerfile 0.94% Batchfile 0.03% Shell 0.05%
whatsapp tracker whatsapp-chat message-blast python3 command-line-tool chromedriver chat save-chat-in-database telegram-bot

whatsapp-play's People

Contributors

97shivank avatar aman-codes avatar amandhamija98 avatar ankitaxpriya avatar bhardwajshweta25 avatar brainaxe123 avatar codacy-badger avatar harshmehta2468 avatar heroichitesh avatar meghanagottapu avatar nileshpatra avatar noobdv avatar p-soham11 avatar phalashi avatar preeti13456 avatar priyalbhatewara123 avatar ritiek avatar rits1272 avatar rpotter12 avatar shanmukhanitd avatar shivam1423 avatar shreyakapoor08 avatar singhhimadri avatar smriti111 avatar subhradeepss avatar swadesh13 avatar vaishsiddharth avatar vineetjk avatar xandao-dev avatar zulkernine 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

whatsapp-play's Issues

Refactoration

Create a new python file for session managment and remove the code from pyppetter menu.

IOT Script (Idea)

A script that create a group and listen for your messages to control something in your house!

e.g. "/turn_light_on"

Can be done using an arduino, esp32 ...

More Information

Hi!
Thanks for Your hard work. I am new in python and I want test this repo for my personal use of tracking. I have installed pip3 in centos7 and also installed repo as instruction given in readme file. Sorry but I am not advanced user and so I don't know how I can connect number with machine etc so I am not able to run it.
I have followed below step

  1. Installed PIP3
  2. Installed Repo using command pip3 install wplay
  3. I dont know what next I should do and so I have tried command like
    wplay -wt "raj" and its giving me error like below
 wplay -wt "raj"
Traceback (most recent call last):
  File "/usr/bin/wplay", line 7, in <module>
    from wplay.wplay import main
  File "/usr/lib/python3.4/site-packages/wplay/wplay.py", line 2, in <module>
    from wplay import onlinetracker
  File "/usr/lib/python3.4/site-packages/wplay/onlinetracker.py", line 7, in <module>
    from playsound import playsound
ImportError: No module named 'playsound'

Please help me for same. Thanks a lot :)

online sound notification

a sound notification in pc system when the person gets online while the onlinetracking script is running

Bug with session manager menu

The BUG

The bug I took note of is when you do the following steps:

  1. Click in 'Restore a Session'
  2. Click in '<---Go-back---'
  3. Click in 'Create a new session'
  4. Write a random name

The end result should save the session, you will notice that this does not happen when you restart the program and check the available sessions.

Pyppeteer (Idea)

Migrate from Selenium to Pyppeteer to deal with asynchronous tasks.

script for telegram bot

currently, the script shows the online status in the terminal only. The idea of the project is to send the online status on the telegram bot.
so we need to create a script to send the online status on telegram bot.

News (Idea)

A script that let you receive news in a whatsapp group.

empty page in chrome with "data:," in address bar

with latest whatsapp play v3.0.0 with latest chrome (79.0.3945.117) and Chromedriver (79.0.3945.36)
wplay -wt username
chrome shows empty page with only "data:," in address bar
What could be the cause of this ?
Thanks!

Access denied?

the script works great but it broke after few minutes and got this debug.txt file

[0601/103131.202:ERROR:process_reader_win.cc(123)] NtOpenThread: {Access Denied} A process has requested access to an object, but has not been granted those access rights. (0xc0000022)
[0601/103131.218:ERROR:exception_snapshot_win.cc(98)] thread ID 8732 not found in process

any clue what is the problem?

Add support for Firefox

Currently, wplay supports only Chrome browser. Let's add a support for firefox too. The code would ask the user to choose the browser they would like to use and extension would be chosen accordingly.

Error: Command 'wplay' not found, after installing wplay by pip

Hi,
I did "pip install wplay" after that I ran
wplay -wt "target_name_of_your_whatsapp_contact"
But I got error as below
`Command 'wplay' not found, did you mean:

command 'splay' from deb splay
command 'qplay' from deb hxtools
command 'bplay' from deb bplay
command 'cplay' from deb cplay
command 'aplay' from deb alsa-utils
command 'play' from deb sox
command 'rplay' from deb rplay-client

Try: sudo apt install
`
Will anyone please give me a proper way to run this project successfully.

Error when running in Windows 10 - online tracking

When running in terminal "wplay -wt xxx", it returns me this error after opening Chrome and recognizing the whatsapp web session from mobile phone. Have any idea how could I solve it? I run it on Windows 10, python 3.7 or python 3.6...

DevTools listening on ws://127.0.0.1:54026/devtools/browser/5e3587e5-85b6-41b2-aa5b-0c7e220cf6cb
Looking for: xxx
Traceback (most recent call last):
File "C:\Users.....AppData\Local\Programs\Python\Python37-32\Scripts\wplay-script.py", line 11, in
load_entry_point('wplay==3.0.0', 'console_scripts', 'wplay')()
File "C:\Users...\AppData\Local\Programs\Python\Python37-32\lib\site-packages\wplay\wplay.py", line 97, in main
match_args(args)
File "C:\Users....\AppData\Local\Programs\Python\Python37-32\lib\site-packages\wplay\wplay.py", line 69, in match_args
onlinetracker.tracker(args.name)
File "C:\Users....\AppData\Local\Programs\Python\Python37-32\lib\site-packages\wplay\onlinetracker.py", line 14, in tracker
sel.find_and_navigate_to_target(driver_wait, chosen_website, name)
File "C:\Users....\AppData\Local\Programs\Python\Python37-32\lib\site-packages\wplay\seleniumUtils.py", line 37, in find_and_navigate_to_target
person_title.click()
File "C:\Users....\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\webelement.py", line 80, in click
self._execute(Command.CLICK_ELEMENT)
File "C:\Users...\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "C:\Users...\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users....\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: element is not attached to the page document
(Session info: chrome=79.0.3945.88)

Many thanks!

Save cookies (Idea)

Save cookies to make session reusable.
I think that isn't hard with Pyppetter.

Make a clean git history?

Currently the git history seems very cluttered, making it difficult to keep a track of changes.
For example ; this, this, this et. al.

IMO, smaller changes can be squashed to get a sane git history.

Intermediate of a conversation (Idea)

Let one person talk to another person from your whatsapp!

E.g.
Person A: send message to you
You: receive message from A and send the message to Person B
Person B: receive message from you

About Changer (Idea)

  1. Change the About every second to looks like is dancing
  2. Change the About every 30 min (you choose) with random phrases from Internet.

Fork

Hey @rpotter12 , why when I clone your repository I can't run the wplay? Only works when I do pip3 install wplay. I wanna edit and make new scripts.

Bug when I move around the menu.

  1. Try to delete a session
  2. Continue without saving

Traceback (most recent call last): File "C:\Program Files\Python38\lib\runpy.py", line 193, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Program Files\Python38\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "D:\Engenharia\Programaçao\Python\Projects\whatsapp-play\wplay\__main__.py", line 114, in <module> asyncio.get_event_loop().run_until_complete(main()) File "C:\Program Files\Python38\lib\asyncio\base_events.py", line 612, in run_until_complete return future.result() File "D:\Engenharia\Programaçao\Python\Projects\whatsapp-play\wplay\__main__.py", line 108, in main await match_args(args) File "D:\Engenharia\Programaçao\Python\Projects\whatsapp-play\wplay\__main__.py", line 88, in match_args await messageblast.blast(args.name) File "D:\Engenharia\Programaçao\Python\Projects\whatsapp-play\wplay\messageblast.py", line 7, in blast pages, browser = await pypConfig.configure_browser_and_load_whatsapp(pypConfig.websites['whatsapp']) File "D:\Engenharia\Programaçao\Python\Projects\whatsapp-play\wplay\pyppeteerUtils\pyppeteerConfig.py", line 45, in configure_browser_and_load_whatsapp username, save_session = __session_mananger() File "D:\Engenharia\Programaçao\Python\Projects\whatsapp-play\wplay\pyppeteerUtils\pyppeteerConfig.py", line 143, in __session_mananger return username, save_session UnboundLocalError: local variable 'username' referenced before assignment

status save file in wplay folder

when we track someone, the status.txt file saves in the default location directory.
The idea is to save the status.txt file in the separate wplay folder

many phone number tracking

Hi,
Learned your code and few another repositories
it is possible to track many phone numbers at the same time?
Even if they are not in contact list.
Thanks!

New scripts (Idea)

  • Get a picture of all contacts
  • Get name and number from all contacts
  • Get the names of users from a group (very easy)
  • Download all media from one contact
  • Change photo of all groups

Logging

Implement logging python module, to track the errors easily.

proper exit option in online tracking

Currently while running online tracking script we have to exit program by pressing ctrl+c.
We should add a proper option to exit program when the program is running.

continuous showing of online status

currently, the script prints the online status after every minute which was not the idea of this project. The script should print the online time once, then prints another online time when the target again gets online.

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.