Instagram 我如何使用instapy bot的like_by_订阅源?

Instagram 我如何使用instapy bot的like_by_订阅源?,instagram,instapy,Instagram,Instapy,你好,当我使用like_by_feed时,它不起作用,只是返回 ---->>为分析而馈送的链接总数:0 ---->>为分析而馈送的链接总数:0 我认为xbath-->>//article/div[2]/div[2]/a这个xpath的问题在于,当bot想要获得post的linke时,xpath似乎被破坏了。您可以使用以下方法通过提要修复类似的问题 查找文件“xpath\u compile.py”(我在Windows:\Python\Lib\site packages\instapy\xpath\

你好,当我使用like_by_feed时,它不起作用,只是返回 ---->>为分析而馈送的链接总数:0 ---->>为分析而馈送的链接总数:0


我认为xbath-->>//article/div[2]/div[2]/a这个xpath的问题在于,当bot想要获得post的linke时,xpath似乎被破坏了。您可以使用以下方法通过提要修复类似的问题

  • 查找文件“xpath\u compile.py”(我在Windows:\Python\Lib\site packages\instapy\xpath\u compile.py上)
  • 查找并替换文本
  • 保存文件并再次运行Bot
  • xpath["get_links_from_feed"] = {"get_links":
    "//article/div[3]/div[2]/a"}
    
    xpath["get_links_from_feed"] = {"get_links":
    "//article/div/div[3]/div[2]/a"}