thelordsaves

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

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

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