猎聘网HR版简历爬取

根据需求爬取猎聘网求职者简历

# -*- coding:utf-8 -*-
import time
from lxml import etree
from selenium import webdriver
from selenium.webdriver.common.keys import Keys

brower = webdriver.Chrome()
brower.get("https://passport.liepin.com/e/account")
# print(brower.page_source)

brower.save_screenshot("liepinhr.png")
time.sleep(30)
user_name = brower.page_source
selector = etree.HTML(user_name)
user_name1 = selector.xpath('')[0].text
print(user_name1)

你可能感兴趣的:(python爬虫)