RPA定制機(jī)器人——DY循環(huán)評(píng)論軟件,模擬人工留言評(píng)論軟件(多個(gè)關(guān)鍵詞+隨機(jī)話術(shù)表情版本)
#僅供學(xué)習(xí)交流,嚴(yán)禁商用。 技術(shù)支持:若愚網(wǎng)絡(luò) 汪華貝 ,歡迎大家批評(píng)指正,謝謝!
代碼如下:
import xbot
from xbot import print, sleep
from .import package
from .package import variables as glv
import random
import time
import pyautogui
def main(args):
Inputkeywords= args
DYfrist = xbot.web.create("https://www.dou***.c*m/?recommend=1","chrome",load_timeout = 50)
Delaytime = random.uniform(10, 30)
time.sleep(Delaytime)
def scroll_down_pixels(pixels: int):
Delaytime = random.uniform(2, 8)
time.sleep(Delaytime)
pyautogui.scroll(-pixels)
return None
for keyword in Inputkeywords:
DYbrowser = xbot.web.get_active(mode='chrome')
Inputbox = DYbrowser.find_by_xpath('//input[@data-e2e="searchbar-input" and @type="text"]')
Inputbox.input(keyword+"公司",send_key_delay=800,delay_after=3)
Searchbutton = DYfrist.find_by_xpath('//span[text()="搜索"]')
Searchbutton.click(delay_after = 3,move_mouse = True)
Delaytime = random.uniform(5, 10)
time.sleep(Delaytime)
DYbrowser = xbot.web.get_active(mode='chrome')
Singlebutton = DYbrowser.find_by_xpath('//div[text()="單列"]')
Singlebutton.click(delay_after = 3,move_mouse = True)
Delaytime = random.uniform(4, 8)
time.sleep(Delaytime)
DYbrowser.find_by_xpath('//span[text()="篩選"]').hover(simulative=True,delay_after=3)
Delaytime = random.uniform(4, 8)
time.sleep(Delaytime)
Noseen = DYbrowser.find_by_xpath('//span[text()="還未看過(guò)"]')
Noseen.click(delay_after = 2,move_mouse = True)
oneweek = DYbrowser.find_by_xpath('//span[text()="一周內(nèi)"]')
Oneweek.click(delay_after = 2,move_mouse = True)
Latestrelease = DYbrowser.find_by_xpath('//span[text()="發(fā)布"]')
Latestrelease.click(delay_after = 2,move_mouse = True)
Filterelement = DYbrowser.find_by_xpath('//span[text()="篩選"]')
Filterelement.click(delay_after = 3,move_mouse = True)
print(f"{keyword}公司正常循環(huán)運(yùn)行")
表情1="[贊]"
表情2="[抱拳]"
表情3="[玫瑰]"
表情4="[666]"
表情5="[比心]"
表情6="[送心]"
表情7="[擊掌]"
表情8="[OK]"
表情9="[V5]"
表情10="[給力]"
表情11="[鼓掌]"
表情12="[抱抱你]"
隨機(jī)表情=[表情1,表情2,表情3,表情4,表情5,表情6,表情7,表情8,表情9,表情10,表情11,表情12]
for i in range(108):
抽取數(shù)量 = random.randint(1, 4)
留言表情 = [random.choice(隨機(jī)表情) for _ in range(抽取數(shù)量)]
留言話術(shù) = ''.join(留言表情)
def check_element_exists():
try:
DYbrowser = xbot.web.get_active(mode='chrome')
element = DYbrowser.find_by_xpath('//div[text()="暫時(shí)沒(méi)有更多了"]', timeout=1)
return element.is_displayed()
except:
return False
result = check_element_exists()
if result == True:
print(f"頁(yè)面到底了,{keyword}公司循環(huán)了{(lán)i+1}次")
break
else:
try:
DYwebpage = xbot.web.get_active(mode='chrome')
Delaytime = random.uniform(2, 5)
time.sleep(Delaytime)
Mouseindex = xbot.win32.mouse_move(point_x=100,point_y=500,move_speed='slow',delay_after=3)
xbot.win32.mouse_click()
xbot.win32.send_keys(keys='{x}',delay_after=3,contains_hotkey=True)
Messageinputbox = DYwebpage.find_by_xpath('//span[text()="留下你的評(píng)論吧"]')
Messageinputbox.input(留言話術(shù),simulative=True,send_key_delay=300,delay_after=3)
Delaytime = random.uniform(2, 5)
time.sleep(Delaytime)
xbot.win32.send_keys(keys='{enter}',contains_hotkey=True)
print(f"第 {i+1} 次循環(huán),評(píng)論話術(shù)為:{留言話術(shù)}")
except Exception as e:
pass
finally:
Delaytime = random.uniform(2, 5)
time.sleep(Delaytime)
Mouseindex = xbot.win32.mouse_move(point_x=100,point_y=500,move_speed='slow',delay_after=3)
xbot.win32.mouse_click()
scroll_down_pixels(850)
xbot.web.close_all(mode='chrome')
pass
#僅供學(xué)習(xí)交流,嚴(yán)禁商用。 技術(shù)支持:若愚網(wǎng)絡(luò) ,歡迎大家批評(píng)指正,謝謝!
海關(guān)岸橋箱號(hào)識(shí)別:智能化升級(jí)助力港
集裝箱號(hào)碼自動(dòng)識(shí)別系統(tǒng) 助力物流、
口岸一站式通關(guān)系統(tǒng):智能卡口技術(shù)賦
孚為電子通關(guān)智能卡口系統(tǒng) 技術(shù)創(chuàng)新
濟(jì)南非標(biāo)機(jī)械設(shè)計(jì)培訓(xùn)
橋吊集裝箱號(hào)碼識(shí)別技術(shù)賦能港口智慧
OCR技術(shù)賦能火車車廂識(shí)別系統(tǒng)
鐵路集裝箱號(hào)碼識(shí)別系統(tǒng):AI賦能鐵路
海關(guān)電子通關(guān)系統(tǒng) 構(gòu)建智慧口岸新生
設(shè)備控費(fèi)數(shù)據(jù)管理系統(tǒng)+卓健易控ZJV8.
集裝箱殘損智能識(shí)別系統(tǒng)助力港口運(yùn)輸
智能卡口系統(tǒng):賦能海關(guān)**監(jiān)管與快
鐵路車號(hào)自動(dòng)識(shí)別系統(tǒng) 讓鐵路運(yùn)輸更
鐵路貨運(yùn)車號(hào)識(shí)別系統(tǒng) 賦能礦區(qū)智能
卓健易控V6.0+智能設(shè)備防漏費(fèi)系統(tǒng)+醫(yī)
集裝箱破損智能識(shí)別系統(tǒng)核心技術(shù)
海關(guān)電子通關(guān)系統(tǒng) 智能化監(jiān)管提升通
卓健易控醫(yī)療設(shè)備控費(fèi)系統(tǒng):多模式控
岸橋集裝箱號(hào)識(shí)別系統(tǒng):智能識(shí)別技術(shù)
火車號(hào)碼識(shí)別系統(tǒng) 鐵路智能化車號(hào)識(shí)
正面吊集裝箱箱號(hào)識(shí)別系統(tǒng):AI+OCR技
正面吊箱號(hào)識(shí)別系統(tǒng) 港口智能化核心
智能閘口通關(guān)系統(tǒng) 海關(guān)智能化通關(guān)解
智能電子通關(guān)卡口系統(tǒng) 智能化通關(guān)管
孚為智能集裝箱編號(hào)識(shí)別系統(tǒng) 箱號(hào)識(shí)
鐵路車號(hào)自動(dòng)識(shí)別系統(tǒng) RFID車號(hào)智能
免責(zé)聲明:當(dāng)前頁(yè)為 RPA定制機(jī)器人——DY循環(huán)評(píng)論軟件,模擬人工留言評(píng)論軟件(多個(gè)關(guān)鍵詞+隨機(jī)話術(shù)表情版本)產(chǎn)品信息展示頁(yè),該頁(yè)所展示的 RPA定制機(jī)器人——DY循環(huán)評(píng)論軟件,模擬人工留言評(píng)論軟件(多個(gè)關(guān)鍵詞+隨機(jī)話術(shù)表情版本)產(chǎn)品信息及價(jià)格等相關(guān)信息均有企業(yè)自行發(fā)布與提供, RPA定制機(jī)器人——DY循環(huán)評(píng)論軟件,模擬人工留言評(píng)論軟件(多個(gè)關(guān)鍵詞+隨機(jī)話術(shù)表情版本)產(chǎn)品真實(shí)性、準(zhǔn)確性、合法性由店鋪所有企業(yè)完全負(fù)責(zé)。世界工廠網(wǎng)對(duì)此不承擔(dān)任何保證責(zé)任,亦不涉及用戶間因交易而產(chǎn)生的法律關(guān)系及法律糾紛,糾紛由會(huì)員自行協(xié)商解決。
友情提醒:世界工廠網(wǎng)僅作為用戶尋找交易對(duì)象,就貨物和服務(wù)的交易進(jìn)行協(xié)商,以及獲取各類與貿(mào)易相關(guān)的服務(wù)信息的渠道。為避免產(chǎn)生購(gòu)買風(fēng)險(xiǎn),建議您在購(gòu)買相關(guān)產(chǎn)品前務(wù)必確認(rèn)供應(yīng)商資質(zhì)及產(chǎn)品質(zhì)量。過(guò)低的價(jià)格、夸張的描述、私人銀行賬戶等都有可能是虛假信息,請(qǐng)您謹(jǐn)慎對(duì)待,謹(jǐn)防欺詐,對(duì)于任何付款行為請(qǐng)您慎重抉擇。
投訴方式:fawu@gongchang.com是處理侵權(quán)投訴的專用郵箱,在您的合法權(quán)益受到侵害時(shí),請(qǐng)將您真實(shí)身份信息及受到侵權(quán)的初步證據(jù)發(fā)送到該郵箱,我們會(huì)在5個(gè)工作日內(nèi)給您答復(fù),感謝您對(duì)世界工廠網(wǎng)的關(guān)注與支持!