From 933800147b9109141eef107c412f8b8bd263829d Mon Sep 17 00:00:00 2001 From: friddle Date: Mon, 7 Apr 2014 23:18:00 +0800 Subject: [PATCH] update ruby --- webmagic-scripts/src/main/resources/ruby/oschina.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100755 => 100644 webmagic-scripts/src/main/resources/ruby/oschina.rb diff --git a/webmagic-scripts/src/main/resources/ruby/oschina.rb b/webmagic-scripts/src/main/resources/ruby/oschina.rb old mode 100755 new mode 100644 index cbced0b..dbea13b --- a/webmagic-scripts/src/main/resources/ruby/oschina.rb +++ b/webmagic-scripts/src/main/resources/ruby/oschina.rb @@ -1,3 +1,6 @@ +urls "http://my\\.oschina\\.net/flashsword/blog/\\d+" title = css "div.BlogTitle h1" content = css "div.BlogContent" -urls "http://my\\.oschina\\.net/flashsword/blog/\\d+" \ No newline at end of file + +return {"title"=>title,"content"=>content} +