fising
V2EX  ›  问与答

百度抓取中文 URL 有问题?求大神专家指导!!

  •  
  •   fising · Oct 21, 2014 · 4029 views
    This topic created in 4404 days ago, the information mentioned may be changed or developed.
    原来地址:/search?q= + urlencode(中文)

    百度给抓取成:/search + urlencode(?q=urlencode(中文))

    导致很多抓取错误 出现404页

    请问如何解决?
    23 replies  •  2014-10-24 22:24:20 +08:00
    weboshr
    weboshr
    Oct 21, 2014
    1
    robots.txt 添加一项

    Disallow: /*?*
    alex321
    alex321
    Oct 21, 2014
    2
    百度自己的测试工具检查轻应用的授权 js 是否成功添加的测试工具都有问题,解析 utf-8 和 gb2312 时,php 出错。。
    百度知道、轻应用与合作方做数据测试时,往正式库里面插入了大量(注意,是大量)垃圾数据。。
    ……
    这种事情我能告诉你们咩。。
    qiayue
    qiayue
    Oct 21, 2014
    3
    code4app.com 有中文 url ,百度抓取没有问题
    楼主发出你的网站看看吧
    millken
    millken
    Oct 21, 2014
    4
    我只能告诉这个是你程序问题
    fising
    fising
    OP
    Oct 21, 2014
    5
    @millken 为啥谷歌没问题呢
    fising
    fising
    OP
    Oct 21, 2014
    6
    @weboshr 这句是啥意思啊,可否解释一下
    jasontse
    jasontse
    Oct 21, 2014 via iPad
    7
    @fising
    禁止抓取带问号的 URL
    binux
    binux
    Oct 21, 2014
    8
    贴一个出错url(短一点的)我给你看看
    fising
    fising
    OP
    Oct 21, 2014
    9
    fising
    fising
    OP
    Oct 21, 2014
    10
    @binux 贴到这里URL被V2EX转换了。你直接复制。不要点击这里的链接。
    binux
    binux
    Oct 21, 2014
    11
    @fising 你确定百度最近爬了你这个url?
    binux
    binux
    Oct 21, 2014
    12
    @fising 没事,我自己另找了一个。
    这链接是从站长平台灌的,你看下你提交的sitemap是不是有问题。
    fising
    fising
    OP
    Oct 21, 2014
    13
    @binux 百度站长系统,出错列表里有这个记录
    binux
    binux
    Oct 21, 2014
    15
    这站没什么价值就不管了
    fising
    fising
    OP
    Oct 21, 2014
    16
    @binux 别这么说呀呀呀呀。这是讨论技术。
    Showfom
    Showfom
    PRO
    Oct 21, 2014
    17
    @fising 你的这个站开源不= =
    caomu
    caomu
    Oct 21, 2014
    18
    我只是来围观看楼上的大大们卖萌的 =。=
    blijf
    blijf
    Oct 21, 2014
    19
    我已经不在乎它收不收了,已经全换SSL
    fising
    fising
    OP
    Oct 22, 2014
    20
    @Showfom 已经开源了
    Showfom
    Showfom
    PRO
    Oct 22, 2014
    21
    @fising 在哪里下载?
    weboshr
    weboshr
    Oct 24, 2014
    22
    @fising 带有"?"的链接禁止抓取
    fising
    fising
    OP
    Oct 24, 2014
    23
    @weboshr 禁止的话,就没几个页面能抓了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1931 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 15:35 · PVG 23:35 · LAX 07:35 · JFK 10:35
    ♥ Do have faith in what you're doing.