Coder Social home page Coder Social logo

whatsapp-bot-python3's Introduction

whatsapp-bot-python3

    Simple example of a whasapp bot in python3 and Selenium

Dependencies

    Replace the chromedrive file with the version compatible with your system.
    https://chromedriver.chromium.org/downloads

Chromedriver version

    86.0.4240.22

How to start project

    1- virtualenv --python=python3 source
    2- . source/bin/activate
    3- pip3 install -r requirements.txt
    4- python3 app.py

whatsapp-bot-python3's People

Contributors

gustavosoriano avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

01lucas-costa

whatsapp-bot-python3's Issues

Unable to run

Aguardando 30 segundos para sincronização do QRCode
Enviando mensagem para Maria
Traceback (most recent call last):
File "E:\py\whatsapp-bot-python3-master\app.py", line 41, in
bot.envia_contatos(" Mensagem automatizada via Bot ")
File "E:\py\whatsapp-bot-python3-master\app.py", line 27, in envia_contatos
pessoa = self.driver.find_element_by_xpath(f"//span[@title='{pessoa}']")
File "C:\Users\huzoo\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "C:\Users\huzoo\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\huzoo\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\huzoo\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//span[@title='Maria']"}
(Session info: chrome=78.0.3904.97)

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.