智联招聘基本都是硬件测试,按软件测试搜索,出来的基本都是硬件测试岗位
可能是职位分类中,硬件测试和软件测试被归为同一类别了,所以搜索结果中会出现硬件测试的岗位。可以通过筛选条件中的“工作经验”、“学历要求”等选项来进一步缩小搜索范围,以便更快地找到符合要求的岗位。
使用更具体的关键词和搜索条件,以便更好地定位您感兴趣的软件测试岗位。
答案:
针对问题所提出的参考资料并没有直接提供有效的方法或策略来解决如何找到符合软件测试职位的招聘信息,因此以下是我基于我的IT专业知识和经验所提供的解决方案:
#代码示例
import requests
from bs4 import BeautifulSoup
url = "https://www.zhaopin.com/"
search_kw = "软件测试"
search_location = "全国"
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3'}
response = requests.get(url, headers=headers)
soup = BeautifulSoup(response.text, 'html.parser')
search_box = soup.select_one(".zp-searchbox__dropdown__content")
for i in search_box.select("a"):
if search_location in i['title'].replace(" ", ""):
lm_url = i['href']
response = requests.get(lm_url, headers=headers)
soup = BeautifulSoup(response.text, 'html.parser')
search_kw_input = soup.select_one("#search_input")
search_kw_input['value'] = search_kw
form = soup.select_one(".search-form__left")
action = form['action']
params = {}
for i in form.select("input"):
params[i['name']] = i['value']
search_url = url + action
response = requests.post(search_url, headers=headers, data=params)
soup = BeautifulSoup(response.text, 'html.parser')
for result in soup.select(".contentpile__content__wrapper"):
job_title = result.select_one(".contentpile__content__wrapper__item__info__box__jobname__title")
job_tags = result.select(".contentpile__content__wrapper__item__info__box__tag__wrapper__tag")
if any(search_kw in tag.text for tag in job_tags) or search_kw in job_title.text:
print(job_title.text.strip())
print(result.select_one(".salary").text.strip())
print(result.select_one(".company_title").text.strip())
print(result.select_one(".job_desc").text.strip())
print("="*60)
#代码示例(以拉钩网为例)
import requests
import json
url = "https://www.lagou.com/jobs/list_{}?labelWords=&fromSearch=true&suginput="
search_kw = "软件测试"
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3'}
response = requests.get(url.format(search_kw), headers=headers)
cookies = response.cookies.get_dict()
x_anit_forge_token = cookies['X_Anti_Forge_Token']
x_anit_forge_code = cookies['X_Anti_Forge_Code']
headers.update({
'X-Requested-With': 'XMLHttpRequest',
'X-Anit-Forge-Token': x_anit_forge_token,
'X-Anit-Forge-Code': x_anit_forge_code,
})
data = {
'pn': 1,
'kd': search_kw
}
post_url = "https://www.lagou.com/jobs/positionAjax.json?needAddtionalResult=false&isSchoolJob=0"
response = requests.post(post_url, headers=headers, cookies=cookies, data=data)
json_data = json.loads(response.text)
for item in json_data['content']['positionResult']['result']:
print(item['companyFullName'])
print(item['positionName'])
print(item['salary'])
print(item['workYear'])
print(item['education'])
print(item['district'])
print(item['firstType'])
print(item['secondType'])
print(item['thirdType'])
print(item['companyLabelList'])
print("="*60)
综上所述,以上提供了三种方法来寻找符合软件测试职位的招聘信息,具体选用哪种方法取决于自己的需求和实际情况。