【发布时间】:2023-03-19 01:00:01
【问题描述】:
我想用 python selenium 上传图片或视频并在 Instagram 上发布
我试过这个:
driver.find_element_by_class_name("_0TPg").send_keys('/path/to/the/picture')
还有这个:
actions = webdriver.ActionChains(Drive)
element = Drive.find_element_by_class_name("_0TPg")
actions.move_to_element(element)
actions.click()
actions.send_keys('/path/to/the/picture')
actions.perform()
但他们都没有工作。
即使 INSTAPY 也不起作用。
如果有人帮助我,我将不胜感激!
(移动仿真 Chrome Instagram) 我们应该点击“+”号发布并打开图片
python3
【问题讨论】: