简体   繁体   English

在 Instagram 上使用 python 更新照片

[英]Update a photo with python on instagram

I am doing a script that publishes photos to Instagram automatically.我正在做一个自动将照片发布到 Instagram 的脚本。 I control Instagram web with selenium but when I press the button to update a photo, the file navigator pops-up and I can't still control it with selenium.我用 selenium 控制 Instagram web 但是当我按下按钮更新照片时,文件导航器弹出,我仍然无法用 Z8E00596AD8DE2213FF8F8D8478D5362C 控制它。 File navigator Photo文件导航器照片

I would need to go to my image path(Desktop/bot/img.png) and open it.我需要 go 到我的图像路径(Desktop/bot/img.png)并打开它。 Is there any library or something that could allow me to do this?是否有任何图书馆或可以让我这样做的东西?

Thanks谢谢

No one can advise you without any information such as html.没有任何信息,例如 html,没有人可以为您提供建议。

As I think you can find <input... > tag in Instagram HTML.我认为您可以在 Instagram HTML 中找到 <input... > 标签。 (please find near upload button.) (请在上传按钮附近找到。)

If there is it, you can use below sentence.如果有的话,你可以使用下面的句子。

.find_element_by_xpath("(xpath of input tag)").send_keys("(file path)")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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