whatsplay / whatsapp-play

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..
MIT License
402 stars 219 forks source link

Need an update! #418

Closed akashva50 closed 3 years ago

akashva50 commented 3 years ago

Bug Description Wplay stops by throwing some error after selecting the target for tracking.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Terminal'
  2. Run wplay $python -m wplay -wt
  3. select target chat
  4. See error!

Expected behaviour It should show target online status

Screenshots error You've selected the target named by: [--targetname--] Waiting for selector "#app > div > div > div:nth-child(2) > div:last-of-type > span > div > span > div > div > div:first-child > div" failed: timeout 8000ms exceeds. 'NoneType' object is not subscriptable Process Killed! Traceback (most recent call last): File "/Users/aku/anaconda3/bin/wplay", line 5, in from wplay.main import main File "/Users/aku/anaconda3/lib/python3.8/site-packages/wplay/main.py", line 216, in asyncio.get_event_loop().run_until_complete(main()) File "/Users/aku/anaconda3/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete return future.result() File "/Users/aku/anaconda3/lib/python3.8/site-packages/wplay/main.py", line 209, in main await get_and_match_args(parser) File "/Users/aku/anaconda3/lib/python3.8/site-packages/wplay/main.py", line 195, in get_and_match_args await target_info.target_info(args.target) File "/Users/aku/anaconda3/lib/python3.8/site-packages/wplay/target_info.py", line 103, in target_info await target_select.manual_select_target(page) File "/Users/aku/anaconda3/lib/python3.8/site-packages/wplay/utils/target_select.py", line 20, in manual_select_target target_search.print_complete_target_info(complete_target_info) File "/Users/aku/anaconda3/lib/python3.8/site-packages/wplay/utils/target_search.py", line 431, in print_complete_target_info for key in complete_target_info.keys(): AttributeError: 'NoneType' object has no attribute 'keys'

Desktop information:

rpotter12 commented 3 years ago

@akashva50 Whatsapp change their whatsapp-web frontend code in some period of time. The selectors are changed. We need to edit the selector of this software.

Please start fixing this error. :)

akashva50 commented 3 years ago

@akashva50 Whatsapp change their whatsapp-web frontend code in some period of time. The selectors are changed. We need to edit the selector of this software.

Please start fixing this error. :)

should i update "whatsapp_selectors_dict"?

rpotter12 commented 3 years ago

@akashva50 Whatsapp change their whatsapp-web frontend code in some period of time. The selectors are changed. We need to edit the selector of this software. Please start fixing this error. :)

should i update "whatsapp_selectors_dict"?

Yes. You only need add right selector

akashva50 commented 3 years ago

@akashva50 Whatsapp change their whatsapp-web frontend code in some period of time. The selectors are changed. We need to edit the selector of this software. Please start fixing this error. :)

should i update "whatsapp_selectors_dict"?

Yes. You only need add right selector

app > div > div > div.Akuo4 > div._1Flk2._3xysY > span > div > span > div > div > section > div._3ZEdX._3hiFt.bRenh > div._1TFjN > span:nth-child(2)

how to edit above selector?

rpotter12 commented 3 years ago

@akashva50 Open whatsapp-web. Check the valid selector there and change the whatsapp_selector according to that.