whatsapp手机助手(whatsapp 操作流程)

未标题-1-4 (1).png

您是否曾经希望在生日那天自动祝福您的朋友,或者在预设时间自动向您的朋友发送一组消息,或者通过在whatsapp上发送数千条随机文本给您的朋友! 使用浏览器自动化,您可以完成所有这些操作以及更多操作!

首先,您必须安装以下这些:

1)Selenium

pip install selenium

2)Chrome Webdriver

从此处下载Chrome驱动程序:Chromedriver下载页面

将其提取到已知位置,因为我们稍后需要该位置。

如果卡在某个地方,请参阅文档:文档链接

3)Chromium Web浏览器

sudo apt-get install chromium-browser

就这样!现在都准备好了。

让我们开始编码

from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By import time # Replace below path with the absolute path # to chromedriver in your computer driver = webdriver.Chrome driver.get wait = WebDriverWait # Replace 'Friend's Name' with the name of your friend # or the name of a group target = '"Friend\\'s Name"' # Replace the below string with your own message string = "Message sent using Python!!!" x_arg = '//span[contains]'group_title = wait.until)) group_title.click inp_xpath = '//div[@class="input"][@dir="auto"][@data-tab="1"]'input_box = wait.until)) for i in range: input_box.send_keys time.sleep

从手机whatsapp的顶部栏中选择whatsapp网站

然后运行脚本。扫描显示在屏幕上的QR码,享受python的强大功能!

可以继续修改代码。尝试:

1)一次向多个组发送文本

2)从预定义的消息列表中随机发送消息,或

3)发送完整的随机文本。

海外精品引流脚本–最强海外引流  

官网:www.facebook18.com

唯一TG:https://t.me/Facebook181818

Facebook.png

更多海外引流脚本方案

如果你需要脚本演示、部署咨询或海外获客方案,可以通过下面入口继续查看。

官网首页 | 演示视频 | TG 在线客服 | TG 频道

相关阅读

© 版权声明
广告也精彩

相关文章