Git Product home page Git Product logo

whatspy's Introduction

WhatsPy

Python Whatsapp API based on Selenium and ChromeDriver

Working as of Jul 11 2020

Usage

Chrome and ChromeRemote work together to control the browser instance. Once Chrome has been started with start_chrome.py, you can just start the remote with start_remote.py and it will use the same browser instance.

It saves a profile/session file to save chrome.command_executor._url and chrome.session_id.

See the ChromePy repo for more info on the remote aproach.

Limitations

  • All web.whatsapp.com limitations
  • Scan QRCode on first run
  • You must have a persons number saved to your phone
  • You must set the contact exact and complete saved name
  • Names must be unique in your contacts list

QRCode scan

A screens/qrcode.png file is saved for scaning with your smartphone. WhatsPy will try to save a profile so you don't need to scan the qrcode everytime. Keep in mind that whatsapp logs you out if you try to login in multiple browsers.

Chrome Install

WhatsPy uses a Chrome class that is just a wraper Singleton for the Selenum default implementation adding a few easy to use enhancements.

To use chrome with selenium you will need ChromeDriver.

A profile directory will be added to your project directory to save chrome profile.

Roadmap

  • Save QRCode image for scan
  • Send message to contact by name
  • Read latest chats
  • Read latest messages from chat
  • Send message to contact by number
  • Read latest archived chats
  • Read latest archived messages from chat
  • Archive chat
  • Unarchive chat

whatspy's People

Contributors

matheusvanzan avatar

Stargazers

Lucas Juliano Possa Gomes avatar Mohammad.e avatar Nautatava Navlakha avatar  avatar AmirHossein Parhizgar avatar RayanMasri avatar Raimundo Pereira da Silva Junior avatar Alan Rios avatar Victor avatar Renan Aleixo avatar  avatar aemrea avatar  avatar Michel Pessoa Keursten avatar Patrick avatar Mic avatar TrOliveira avatar Tawanda Minya avatar  avatar Franky So avatar

Watchers

James Cloos avatar Patrick avatar  avatar XaNcE avatar

whatspy's Issues

Error

Hello when I run whatsapp.py i get the following error:

Loading took too much time! Traceback (most recent call last): File "whatsapp.py", line 95, in <module> whats.load_chats() File "whatsapp.py", line 77, in load_chats chats = chatbox.find_elements_by_css_selector('div[tabindex]') AttributeError: 'NoneType' object has no attribute 'find_elements_by_css_selecto r'

What I have to do, if i downloaded it from github and installed all responsibilities.
Thanks for your answer i am Python beginner.

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.