V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
leisurelylicht
V2EX  ›  Python

使用爬虫爬取搜索结果的时候如何避免被自动纠错

  •  
  •   leisurelylicht · 2015-11-24 14:54:17 +08:00 · 2038 次点击
    这是一个创建于 3075 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我想爬取的关键字是 mybosc,百度会自动纠错后搜索 my boss.

    怎么办?

    9 条回复    2015-11-25 15:24:51 +08:00
    shuax
        1
    shuax  
       2015-11-24 15:03:27 +08:00
    nojc=1
    leisurelylicht
        2
    leisurelylicht  
    OP
       2015-11-24 15:19:16 +08:00
    @shuax 多谢
    justjavac
        3
    justjavac  
       2015-11-24 15:29:38 +08:00
    nojc = no Jiu Cuo = no 纠错
    leisurelylicht
        4
    leisurelylicht  
    OP
       2015-11-24 15:48:01 +08:00
    @justjavac 其他的搜索引擎也是一样的吗?
    justjavac
        5
    justjavac  
       2015-11-24 17:47:23 +08:00
    @leisurelylicht google 肯定不是了
    Delbert
        6
    Delbert  
       2015-11-24 18:21:04 +08:00 via Android
    不应该是加双引号吗?
    dong3580
        7
    dong3580  
       2015-11-24 18:36:08 +08:00
    @justjavac
    估计不好抓吧,上次搞了半天取不出来内容,
    dong3580
        8
    dong3580  
       2015-11-24 18:36:33 +08:00
    @justjavac
    打错了。估计=>谷歌
    mulog
        9
    mulog  
       2015-11-25 15:24:51 +08:00
    这个参数名起得真是。。。
    如果在代码里有 isJiuCuoEnabled 这种东西程序员不会想打人吗。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1545 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 17:13 · PVG 01:13 · LAX 10:13 · JFK 13:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.