Loading

下载人才报告


from selenium import webdriver
driver = webdriver.Firefox()
driver.get("https://www.useit.com.cn/thread-25202-1-1.html")
tbody = driver.find_elements_by_tag_name("tbody")
imgs = tbody[6].find_elements_by_tag_name("img")
len(imgs)


for i in imgs:
    print(i.get_attribute("file"))
    print("download")
    urllib.request.urlretrieve(i.get_attribute("file"), filename="/home/baixiaoxu/desk/img/{}.jpg".format(l))
    l = l +1
    


posted @ 2020-03-04 19:34  Lust4Life  阅读(102)  评论(0编辑  收藏  举报