gavinzgz
V2EX  ›  问与答

爬虫301是什么情况?

  •  
  •   gavinzgz · Jan 15, 2014 · 4351 views
    This topic created in 4684 days ago, the information mentioned may be changed or developed.
    小爬了几次,爬不动了,curl指令返回:
    <html>
    <head><title>301 Moved Permanently</title></head>
    <body bgcolor="white">
    <center><h1>301 Moved Permanently</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>
    真狠,连浏览器也上不去了,这可咋整?
    5 replies  •  1970-01-01 08:00:00 +08:00
    binux
    binux
    Jan 15, 2014
    1
    -L, --location Follow redirects (H)
    gavinzgz
    gavinzgz
    OP
    Jan 15, 2014
    2
    @binux http301好像不会造成浏览器上不去,应该是一种防爬虫策略的伪装。
    binux
    binux
    Jan 15, 2014
    3
    @gavinzgz 因为浏览器行为是跳转
    vibbow
    vibbow
    Jan 15, 2014
    4
    你是不是爬到了
    http://example.com 之类的
    因为这样会跳转到
    http://example.com/
    txlty
    txlty
    Jan 15, 2014
    5
    你需要的信息在header里,不在正文里。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4832 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 01:43 · PVG 09:43 · LAX 17:43 · JFK 20:43
    ♥ Do have faith in what you're doing.