简体   繁体   中英

Instagram BOT with Python Selenium

how can it press the "Follow" button every 1 second - http://prntscr.com/r7o9d6 ?

Trying this but not working:

self.driver.find_element_by_xpath("//button[contains(text(), 'Follow')]")\
.click()
sleep(1)

thanks!

您需要导入时间然后 time.sleep(1)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM