1. 程式人生 > >獵聘網HR版簡歷爬取

獵聘網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)