鱼C论坛

 找回密码
 立即注册
查看: 2029|回复: 3

想请问下BOSS直聘怎么破反爬?

[复制链接]
发表于 2022-6-9 22:53:24 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
我最近想爬boss直聘,用requests后爬取,一开始还是正常,后面就失效了,requests解析的内容变得跟原网页内容不同了
变成了这样,有大佬知道怎么破吗?
  1. <style>
  2.                 html,
  3.                 body {
  4.                         margin: 0;
  5.                         width: 100%;
  6.                         height: 100%;
  7.                 }

  8.                 @keyframes bossLoading {
  9.                         0% {
  10.                                 transform: translate3d(0, 0, 0);
  11.                         }

  12.                         50% {
  13.                                 transform: translate3d(0, -10px, 0);
  14.                         }
  15.                 }

  16.                 .data-tips {
  17.                         text-align: center;
  18.                         height: 100%;
  19.                         position: relative;
  20.                         background: #fff;
  21.                         top: 50%;
  22.                         margin-top: -37px;
  23.                 }

  24.                 .data-tips .boss-loading {
  25.                         width: 100%;
  26.                 }

  27.                 .data-tips .boss-loading p {
  28.                         margin-top: 10px;
  29.                         color: #9fa3b0;
  30.                 }

  31.                 .boss-loading .component-b,
  32.                 .boss-loading .component-s1,
  33.                 .boss-loading .component-o,
  34.                 .boss-loading .component-s2 {
  35.                         display: inline-block;
  36.                         width: 40px;
  37.                         height: 42px;
  38.                         line-height: 42px;
  39.                         font-family: Helvetica Neue, Helvetica, Arial, Hiragino Sans GB, Hiragino Sans GB W3, Microsoft YaHei UI, Microsoft YaHei, WenQuanYi Micro Hei, sans-serif;
  40.                         font-weight: bolder;
  41.                         font-size: 40px;
  42.                         color: #eceef2;
  43.                         vertical-align: top;
  44.                         -webkit-animation-fill-mode: both;
  45.                         -webkit-animation: bossLoading 0.6s infinite linear alternate;
  46.                         -moz-animation: bossLoading 0.6s infinite linear alternate;
  47.                         animation: bossLoading 0.6s infinite linear alternate;
  48.                 }

  49.                 .boss-loading .component-o {
  50.                         -webkit-animation-delay: 0.1s;
  51.                         -moz-animation-delay: 0.1s;
  52.                         animation-delay: 0.1s;
  53.                 }

  54.                 .boss-loading .component-s1 {
  55.                         -webkit-animation-delay: 0.2s;
  56.                         -moz-animation-delay: 0.2s;
  57.                         animation-delay: 0.2s;
  58.                 }

  59.                 .boss-loading .component-s2 {
  60.                         -webkit-animation-delay: 0.3s;
  61.                         -moz-animation-delay: 0.3s;
  62.                         animation-delay: 0.3s;
  63.                 }
复制代码
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2022-6-10 00:27:11 | 显示全部楼层
所以你的代码呢?
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2022-6-10 11:11:05 | 显示全部楼层
换cookies和headers
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2022-6-10 14:00:09 | 显示全部楼层
加上headers和cookies,没有效果的话再使用代理IP
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-7-19 09:45

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表