FacebookWebBot.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:FacebookBot 作者: hikaruAi 项目源码 文件源码
def commentInPost(self, postUrl, text):
        """Comment a text(str) in a post(str)"""
        try:
            self.get(postUrl)
            tb = self.find_element_by_name("comment_text")
            tb.send_keys(text)
            tb.send_keys(Keys.ENTER)
            return self.getScrenshotName(
                "CommentingIn_" + self.title, screenshot, screenshotPath)
        except Exception as e:
            print("Can't comment in ", postUrl, "\n->", e)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号