按公司批量搜索所有主流招聘网站是否在招聘搜索框版v0.1
按公司批量搜索所有主流招聘网站是否在招聘搜索框版v0.1
这个版本做了默认做了个响应式前端 但是需要自己去点击搜索 不像api版一样自动化,目前集合了以下网站,默认勾选了5个常用的 其他的可以自己勾选或全部取消 自己去勾选要的站点,当输入关键词点击搜索马上就会批量打开已经勾选的站点,人工再去看一下就知道,比如我搜索方盛制药 然后看有没有招聘职位!
看准网
百度招聘
BOSS直聘
猎聘网
拉勾网
智联招聘
中国HR网
前程无忧
职友集
应届生求职网
实习僧
<!DOCTYPE html>
<html>
<head>
<title>网址搜索</title>
<style>
.container {
width: 500px;
margin: 50px auto;
}
.search-box {
display: flex;
}
.search-input {
flex: 1;
padding: 10px;
font-size: 16px;
}
.search-button {
padding: 10px 20px;
font-size: 16px;
background-color: #007bff;
color: #fff;
border: none;
cursor: pointer;
}
.checkbox-container {
margin-top: 20px;
}
.checkbox-item {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.checkbox-label {
margin-left: 10px;
}
.select-all-button {
margin-top: 10px;
padding: 10px 20px;
font-size: 16px;
background-color: #007bff;
color: #fff;
border: none;
cursor: pointer;
}
.deselect-all-button {
margin-top: 10px;
margin-left: 10px;
padding: 10px 20px;
font-size: 16px;
background-color: orange;
color: #fff;
border: none;
cursor: pointer;
}
</style>
</head>
<body>
<div class="container">
<h2>聚合搜索公司招聘职位</h2>
<div class="search-box">
<input id="keyword" class="search-input" type="text" name="keyword" placeholder="请输入关键词">
<button id="searchButton" class="search-button">搜索</button>
</div>
<div class="checkbox-container">
<h3>选择要打开的网址:</h3>
<?php
$urls = array(
'看准网' => 'https://www.kanzhun.com/search?cityCode=101250100&industryCodes=&pageNum=1&query=[QUERY]',
'百度招聘' => 'https://zhaopin.baidu.com/quanzhi?city=%E9%95%BF%E6%B2%99&query=[QUERY]',
'BOSS直聘' => 'https://www.zhipin.com/web/geek/job?query=[QUERY]',
'猎聘网' => 'https://www.liepin.com/zhaopin/?key=[QUERY]',
'拉勾网' => 'https://www.lagou.com/wn/jobs?kd=[QUERY]&city=%E9%95%BF%E6%B2%99&pn=1',
'智联招聘' => 'https://sou.zhaopin.com/?kw=[QUERY]',
'中国HR网' => 'https://www.chinahr.com/job?value=[QUERY]',
'前程无忧' => 'https://we.51job.com/pc/search?keyword=[QUERY]&searchType=2&sortType=0&metro=',
'职友集' => 'https://www.jobui.com/cmp?keyword=[QUERY]&area=%E9%95%BF%E6%B2%99',
'应届生求职网' => 'https://q.yingjiesheng.com/pc/search?keyword=[QUERY]',
'实习僧' => 'https://www.shixiseng.com/interns?page=1&type=company&keyword=[QUERY]&area=&months=&days=°ree=&official=&enterprise=&salary=-0&publishTime=&sortType=&city=%E9%95%BF%E6%B2%99&internExtend='
);
$excludedUrls = array(
'BOSS直聘',
'拉勾网',
'中国HR网',
'职友集',
'应届生求职网',
'实习僧'
); // 需要取消勾选的网址
foreach ($urls as $name => $url) {
$checked = in_array($name, $excludedUrls) ? '' : 'checked';
echo '
<div class="checkbox-item">
<input type="checkbox" id="' . urlencode($name) . '" name="urls" value="' . $url . '" ' . $checked . '>
<label class="checkbox-label" for="' . urlencode($name) . '">' . $name . '</label>
</div>
';
}
?>
<button id="selectAllButton" class="select-all-button">全选</button>
<button id="deselectAllButton" class="deselect-all-button">全不选</button>
</div>
</div>
<script>
var selectAllButton = document.getElementById("selectAllButton");
var deselectAllButton = document.getElementById("deselectAllButton");
selectAllButton.addEventListener("click", function() {
var checkboxItems = document.getElementsByName("urls");
for (var i = 0; i < checkboxItems.length; i++) {
checkboxItems[i].checked = true;
}
});
deselectAllButton.addEventListener("click", function() {
var checkboxItems = document.getElementsByName("urls");
for (var i = 0; i < checkboxItems.length; i++) {
checkboxItems[i].checked = false;
}
});
document.getElementById("searchButton").addEventListener("click", function() {
var keyword = document.getElementById("keyword").value;
if (keyword) {
var checkedUrls = [];
var checkboxItems = document.getElementsByName("urls");
for (var i = 0; i < checkboxItems.length; i++) {
if (checkboxItems[i].checked) {
var tempUrl = checkboxItems[i].value;
checkedUrls.push(tempUrl.replace("[QUERY]", encodeURIComponent(keyword)));
}
}
if (checkedUrls.length > 0) {
openUrls(checkedUrls);
} else {
alert("请至少选择一个要打开的网址!");
}
}
});
function openUrls(urls) {
var delay = 500;
for (var i = 0; i < urls.length; i++) {
setTimeout(function(url) {
window.open(url);
}.bind(null, urls[i]), delay);
delay += 500;
}
}
</script>
</body>
</html>
使用方法 : 保存为php 上传然后 如下
打开后直接搜公司名 勾选要搜的站 至少有一个勾选才能搜 http://sql.127.com/openurl.php
纯html版本
适合没有环境的地方运行
<!DOCTYPE html>
<html>
<head>
<title>网址搜索</title>
<meta charset="UTF-8">
<style>
.container {
width: 500px;
margin: 50px auto;
}
.search-box {
display: flex;
}
.search-input {
flex: 1;
padding: 10px;
font-size: 16px;
}
.search-button {
padding: 10px 20px;
font-size: 16px;
background-color: #007bff;
color: #fff;
border: none;
cursor: pointer;
}
.checkbox-container {
margin-top: 20px;
}
.checkbox-item {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.checkbox-label {
margin-left: 10px;
}
.select-all-button {
margin-top: 10px;
padding: 10px 20px;
font-size: 16px;
background-color: #007bff;
color: #fff;
border: none;
cursor: pointer;
}
.deselect-all-button {
margin-top: 10px;
margin-left: 10px;
padding: 10px 20px;
font-size: 16px;
background-color: orange;
color: #fff;
border: none;
cursor: pointer;
}
</style>
</head>
<body>
<div class="container">
<h2>聚合搜索公司招聘职位</h2>
<div class="search-box">
<input id="keyword" class="search-input" type="text" name="keyword" placeholder="请输入关键词">
<button id="searchButton" class="search-button">搜索</button>
</div>
<div class="checkbox-container">
<h3>选择要打开的网址:</h3>
<div class="checkbox-item">
<input type="checkbox" id="kanzhun" name="urls" value="https://www.kanzhun.com/search?cityCode=101250100&industryCodes=&pageNum=1&query=[QUERY]">
<label class="checkbox-label" for="kanzhun">看准网</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="baidu" name="urls" value="https://zhaopin.baidu.com/quanzhi?city=%E9%95%BF%E6%B2%99&query=[QUERY]">
<label class="checkbox-label" for="baidu">百度招聘</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="liepin" name="urls" value="https://www.liepin.com/zhaopin/?key=[QUERY]">
<label class="checkbox-label" for="liepin">猎聘网</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="zhilian" name="urls" value="https://sou.zhaopin.com/?kw=[QUERY]" checked>
<label class="checkbox-label" for="zhilian">智联招聘</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="51job" name="urls" value="https://we.51job.com/pc/search?keyword=[QUERY]&searchType=2&sortType=0&metro=" checked>
<label class="checkbox-label" for="51job">前程无忧</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="boss" name="urls" value="https://www.zhipin.com/c101250100/?query=[QUERY]" checked>
<label class="checkbox-label" for="boss">BOSS直聘</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="lagou" name="urls" value="https://www.lagou.com/jobs/list_[QUERY]?city=%E9%95%BF%E6%B2%99&cl=false&fromSearch=true&labelWords=sug&suginput=">
<label class="checkbox-label" for="lagou">拉勾网</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="chinahr" name="urls" value="http://www.chinahr.com/search/jobs/?city=010&keyword=[QUERY]">
<label class="checkbox-label" for="chinahr">中国HR网</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="jobui" name="urls" value="https://www.jobui.com/jobs?jobKw=[QUERY]&cityKw=%E9%95%BF%E6%B2%99&industry=" checked>
<label class="checkbox-label" for="jobui">职友集</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="yingjiesheng" name="urls" value="https://www.yingjiesheng.com/longtext-0-0-[QUERY]-1.html">
<label class="checkbox-label" for="yingjiesheng">应届生求职网</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="shixiseng" name="urls" value="https://www.shixiseng.com/interns?sType=1&keyword=[QUERY]&city=%E9%95%BF%E6%B2%99">
<label class="checkbox-label" for="shixiseng">实习僧</label>
</div>
<button id="selectAllButton" class="select-all-button">全选</button>
<button id="deselectAllButton" class="deselect-all-button">全不选</button>
</div>
</div>
<script>
var selectAllButton = document.getElementById("selectAllButton");
var deselectAllButton = document.getElementById("deselectAllButton");
selectAllButton.addEventListener("click", function() {
var checkboxItems = document.getElementsByName("urls");
for (var i = 0; i < checkboxItems.length; i++) {
checkboxItems[i].checked = true;
}
});
deselectAllButton.addEventListener("click", function() {
var checkboxItems = document.getElementsByName("urls");
for (var i = 0; i < checkboxItems.length; i++) {
checkboxItems[i].checked = false;
}
});
document.getElementById("searchButton").addEventListener("click", function() {
var keyword = document.getElementById("keyword").value;
if (keyword) {
var checkedUrls = [];
var checkboxItems = document.getElementsByName("urls");
for (var i = 0; i < checkboxItems.length; i++) {
if (checkboxItems[i].checked) {
var tempUrl = checkboxItems[i].value;
checkedUrls.push(tempUrl.replace("[QUERY]", encodeURIComponent(keyword)));
}
}
if (checkedUrls.length > 0) {
openUrls(checkedUrls);
} else {
alert("请至少选择一个要打开的网址!");
}
}
});
function openUrls(urls) {
var delay = 500;
for (var i = 0; i < urls.length; i++) {
setTimeout(function(url) {
window.open(url);
}.bind(null, urls[i]), delay);
delay += 500;
}
}
</script>
</body>
</html>