鱼C论坛

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

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

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

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

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

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

                @keyframes bossLoading {
                        0% {
                                transform: translate3d(0, 0, 0);
                        }

                        50% {
                                transform: translate3d(0, -10px, 0);
                        }
                }

                .data-tips {
                        text-align: center;
                        height: 100%;
                        position: relative;
                        background: #fff;
                        top: 50%;
                        margin-top: -37px;
                }

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

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

                .boss-loading .component-b,
                .boss-loading .component-s1,
                .boss-loading .component-o,
                .boss-loading .component-s2 {
                        display: inline-block;
                        width: 40px;
                        height: 42px;
                        line-height: 42px;
                        font-family: Helvetica Neue, Helvetica, Arial, Hiragino Sans GB, Hiragino Sans GB W3, Microsoft YaHei UI, Microsoft YaHei, WenQuanYi Micro Hei, sans-serif;
                        font-weight: bolder;
                        font-size: 40px;
                        color: #eceef2;
                        vertical-align: top;
                        -webkit-animation-fill-mode: both;
                        -webkit-animation: bossLoading 0.6s infinite linear alternate;
                        -moz-animation: bossLoading 0.6s infinite linear alternate;
                        animation: bossLoading 0.6s infinite linear alternate;
                }

                .boss-loading .component-o {
                        -webkit-animation-delay: 0.1s;
                        -moz-animation-delay: 0.1s;
                        animation-delay: 0.1s;
                }

                .boss-loading .component-s1 {
                        -webkit-animation-delay: 0.2s;
                        -moz-animation-delay: 0.2s;
                        animation-delay: 0.2s;
                }

                .boss-loading .component-s2 {
                        -webkit-animation-delay: 0.3s;
                        -moz-animation-delay: 0.3s;
                        animation-delay: 0.3s;
                }
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2022-6-10 00:27:11 | 显示全部楼层
所以你的代码呢?
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2022-6-10 11:11:05 | 显示全部楼层
换cookies和headers
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2022-6-10 14:00:09 | 显示全部楼层
加上headers和cookies,没有效果的话再使用代理IP
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-10-8 04:29

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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