thelordsaves

如何使用ruby抓取百度搜索结果?

  •  
  •   thelordsaves · Apr 19, 2013 · 5269 views
    This topic created in 4815 days ago, the information mentioned may be changed or developed.
    如何使用ruby抓取百度搜索结果?比如抓取百度搜索“啤酒”的前1000个结果,本人ruby新手,望不吝赐教!
    4 replies    1970-01-01 08:00:00 +08:00
    twm
        1
    twm  
       Apr 19, 2013 via iPhone
    抛开语言,你有思路没?有就自己任何语言都能搞定。
    thelordsaves
        2
    thelordsaves  
    OP
       Apr 19, 2013
    @twm 因为刚刚开始接触,项目需要用ruby实现,多谢!
    mqzhang
        3
    mqzhang  
       Apr 20, 2013 via Android
    有个gem叫baiduserp
    xzl380
        4
    xzl380  
       Apr 20, 2013
    第一反应是open(url) 然后 正则

    另外 你看看 这个 https://rubygems.org/gems/baidu
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2701 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 15:35 · PVG 23:35 · LAX 08:35 · JFK 11:35
    ♥ Do have faith in what you're doing.