Insert it here import time
from selenium import webdriver
driver=webdriver.Chrome()
driver.get('https://www.51job.com/')
driver.implicitly_wait(10)
# Click Advanced Search
driver.find_element_by_css_selector('[class="more"]').click()
# Enter key
driver.find_element_by_css_selector('[id="kwdselectid"]').send_keys(' software test ')
# Select region
driver.find_element_by_css_selector('#work_position_click > em').click()
# Delete the selected city
time.sleep(1)# We have to add a time delay
decities=driver.find_elements_by_css_selector('#work_position_click_multiple_selected span.ttag')
for decity in decities:
decity.click()
# Choose Hangzhou
time.sleep(1)# We have to add a time delay
hot_cities=driver.find_elements_by_css_selector('#work_position_click_center_right_list_category_000000_080200')
for hot_city in hot_cities:
if hot_city.text==' Hangzhou ':
hot_city.click()
# Click ok
driver.find_element_by_id('work_position_click_bottom_save').click()
# Confirm the functional category
driver.find_element_by_css_selector('body > div.container > div.d_lt.Fm > div:nth-child(3) > label').click()
driver.find_element_by_css_selector('#funtype_click').click()
time.sleep(1)
# Select computer software
driver.find_element_by_css_selector('#funtype_click_center_right_list_category_0100_0100').click()
# Select Senior Software Engineer
driver.find_element_by_css_selector('#funtype_click_center_right_list_sub_category_each_0100_0106').click()
# Click ok
driver.find_element_by_css_selector('#funtype_click_bottom_save').click()
time.sleep(1)
# Select industry category # Select computer software # Click ok
driver.find_element_by_css_selector('#indtype_click').click()
driver.find_element_by_css_selector('#indtype_click_center_right_list_category_01_01').click()
driver.find_element_by_css_selector('#indtype_click_bottom_save').click()
time.sleep(1)
# Select the nature of the company
driver.find_element_by_css_selector('#cottype_list > input').click()
# Select private company
driver.find_element_by_css_selector('#cottype_list > div > span:nth-child(7)').click()
time.sleep(1)
# Select years of service
driver.find_element_by_css_selector('#workyear_list > input').click()
driver.find_element_by_css_selector('#workyear_list > div > span:nth-child(3)').click()
time.sleep(1)
# Select the monthly salary range
driver.find_element_by_css_selector('#providesalary_list > input').click()
driver.find_element_by_css_selector('#providesalary_list > div > span:nth-child(5)').click()
time.sleep(1)
# Choose company size
driver.find_element_by_css_selector('#companysize_list > input').click()
driver.find_element_by_css_selector('#companysize_list > div > span:nth-child(3)').click()
time.sleep(1)
# Degree required
driver.find_element_by_css_selector('#degreefrom_list > input').click()
driver.find_element_by_css_selector('#degreefrom_list > div > span:nth-child(4)').click()
time.sleep(1)
# Select work type
driver.find_element_by_css_selector('#jobterm_list > input').click()
driver.find_element_by_css_selector('#jobterm_list > div > span:nth-child(2)').click()
time.sleep(1)
# Click on the search
driver.find_element_by_css_selector('body > div.container > div.d_lt.Fm > div.btnbox.p_sou > span').click()
# Output
jobs=driver.find_elements_by_css_selector('#resultList div.el')
for job in jobs:
job_msgs=job.text.split('\n')
print('|'.join(job_msgs))
driver.quit() Into the code slice