googleimg.py 文件源码

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

项目:tulen 作者: detorto 项目源码 文件源码
def getCaptchaImage(self, soup):
        i = soup.find("img", { "class" : "form__captcha" })
        url= i.get("src")

        print soup.find_all("input")
        self.last_key = soup.find("input",{"name":"key"})["value"]
        self.last_retpath = soup.find("input",{"name":"retpath"})["value"]
        fname = "./files/"+next(tempfile._get_candidate_names())+".jpg"
        download_image(url, fname)
        return fname
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号