成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

Python自動化xpath實現(xiàn)自動搶票搶貨-創(chuàng)新互聯(lián)

小伙伴們,這次推文講的是‘xpath‘,掌握起來不難的哦。而且,熟悉了這套路,別說pubmed,任何你能在瀏覽器實現(xiàn)的操作,都基本能通過selenium自動化進(jìn)行。

墨脫ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為創(chuàng)新互聯(lián)建站的ssl證書銷售渠道,可以享受市場價格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:18980820575(備注:SSL證書合作)期待與您的合作!

總代碼:

for i in range(51,56):
  driver.implicitly_wait(10)
  ActionChains(driver).move_to_element(driver.find_element_by_xpath('//*[@id="save-results-panel-trigger"]')).click().perform()

  Select(driver.find_element_by_xpath('//*[@id="save-action-selection"]')).select_by_visible_text("All results on this page")
  ActionChains(driver).move_to_element(driver.find_element_by_xpath('//*[@id="save-action-format"]')).click().perform()
  Select(driver.find_element_by_xpath('/html/body/main/div[1]/div/form/div[2]/select')).select_by_visible_text("CSV")
  ActionChains(driver).move_to_element(driver.find_element_by_xpath('//*[@id="save-action-panel-form"]/div[3]/button[1]')).click().perform()

  target =driver.find_element_by_xpath('//*[@id="search-results"]/section/div[3]/a/span')

  driver.execute_script("arguments[0].();", target)
  ActionChains(driver).move_to_element(driver.find_element_by_xpath('//*[@id="search-results"]/section/div[3]/a/span')).click().perform()
  ActionChains(driver).move_to_element(driver.find_element_by_xpath('//*[@id="search-page"]/div[12]/div/form/button')).click().perform()
  print('第'+str(i)+'頁下載成功')
  print('跳轉(zhuǎn)第'+str(i+1)+'頁面中')
driver.quit()
print('全部下載完畢,自動退出。')

文章標(biāo)題:Python自動化xpath實現(xiàn)自動搶票搶貨-創(chuàng)新互聯(lián)
新聞來源:http://jinyejixie.com/article46/ccjshg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供App開發(fā)、手機(jī)網(wǎng)站建設(shè)App設(shè)計、微信公眾號域名注冊、網(wǎng)站設(shè)計

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站建設(shè)網(wǎng)站維護(hù)公司
永定县| 怀仁县| 遵义县| 鄄城县| 襄城县| 宝山区| 惠安县| 胶州市| 磐安县| 娱乐| 平罗县| 阳江市| 蚌埠市| 山阴县| 田林县| 黄大仙区| 甘德县| 万年县| 黄陵县| 灵石县| 长汀县| 泰宁县| 宜都市| 南漳县| 治县。| 漳浦县| 亳州市| 岢岚县| 霸州市| 石台县| 海林市| 安新县| 岫岩| 梓潼县| 西林县| 驻马店市| 宜黄县| 扎赉特旗| 阳泉市| 台中县| 鲁山县|