wukuaiqian 发表于 2025-4-22 06:52:37

请教大佬关于nodejs爬虫采集

之前找人用nodejs写了个爬虫采集<br />
<br />
现在采集目标站提示:AxiosError: Request failed with status code 403<br />
<br />
请问大概率是什么原因?<br />
<br />
是目标站防火墙原因还是这个什么Axios问题?

van 发表于 2025-4-22 07:12:55

肯定不是axios的问题

wukuaiqian 发表于 2025-4-22 07:15:46

<div class="quote"><blockquote><font size="2"><a href="https://hostloc.com/forum.php?mod=redirect&goto=findpost&pid=16342202&ptid=1404531" target="_blank"><font color="#999999">van 发表于 2025-4-22 07:12</font></a></font><br />
肯定不是axios的问题</blockquote></div><br />
那是源站防火墙问题吗?我尝试用国内服务器去采集也是一样的错误

古田狼 发表于 2025-4-22 07:12:00

触发反爬机制了,用代理ip去爬

wukuaiqian 发表于 2025-4-22 07:24:38

<div class="quote"><blockquote><font size="2"><a href="https://hostloc.com/forum.php?mod=redirect&goto=findpost&pid=16342208&ptid=1404531" target="_blank"><font color="#999999">古田狼 发表于 2025-4-22 07:24</font></a></font><br />
触发反爬机制了,用代理ip去爬</blockquote></div><br />
可能不是ip问题,我刚用国内机器去爬也是一样问题

byg 发表于 2025-4-22 07:44:49

404啊,肯定触发什么机制了,要么ip不行,要么得在头里加点东西

wukuaiqian 发表于 2025-4-22 07:24:00

<div class="quote"><blockquote><font color="#999999">byg 发表于 2025-4-22 08:44</font><br />
<font color="#999999">404啊,肯定触发什么机制了,要么ip不行,要么得在头里加点东西</font></blockquote></div><br />
大佬,是403,付费请你帮我看看啊

wukuaiqian 发表于 2025-4-22 08:44:58

<div class="quote"><blockquote><font color="#999999">古田狼 发表于 2025-4-22 07:24</font><br />
<font color="#999999">触发反爬机制了,用代理ip去爬</font></blockquote></div><br />
没有写代理在里面,你能给我加个嘛?有偿付费

cobra1 发表于 2025-4-22 08:53:20

感觉楼主没有debug调试的技能,既然是小白,为什么要用nodejs搞爬虫,不用python

梅花三十三 发表于 2025-4-22 08:44:00

<div class="quote"><blockquote><font size="2"><a href="https://hostloc.com/forum.php?mod=redirect&goto=findpost&pid=16342377&ptid=1404531" target="_blank"><font color="#999999">cobra1 发表于 2025-4-22 09:45</font></a></font><br />
感觉楼主没有debug调试的技能,既然是小白,为什么要用nodejs搞爬虫,不用python ...</blockquote></div><br />
没有技术,是之前找别人写的,现在联系不上对方了用影刀吧
页: [1] 2
查看完整版本: 请教大佬关于nodejs爬虫采集