我对Selenium相当陌生,但这只虫子只是在敲我的内裤!我试图在我的Instagram提要的前10张照片上编写一个机器人来点击类似的按钮。我刚刚从Chrome复制并粘贴了XPath of the like按钮,但由于某种原因,这个XPath无法工作。下面是代码:from selenium.webdriver.comm
我得到了这个错误: File "C:\Users\Luca\OneDrive\Desktop\Python\INSTAGRAM BOT FINALE ( FORSE)\Python-Instagram-Bot-Scripts-main\selenium_script.py", line 105, in like_post_by_tag
choices = random.sample(posts_list, amountlarger than population or is negati