baidu 1.0.9 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/baidu.rb +1 -2
- metadata +1 -1
data/lib/baidu.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
require 'rubygems'
|
3
3
|
require 'mechanize'
|
4
4
|
require 'json'
|
5
|
-
require 'uri'
|
5
|
+
require 'addressable/uri'
|
6
6
|
class Baidu
|
7
7
|
BaseUri = 'http://www.baidu.com/s?'
|
8
8
|
PerPage = 100
|
@@ -170,4 +170,3 @@ class BaiduResult
|
|
170
170
|
end
|
171
171
|
|
172
172
|
end
|
173
|
-
puts Baidu.new.url('7yoYGJqjJ4zBBpC8yDF8xDhctimd_UkfF8AVaJRPKduy2ypxVG18aRB5L6D558y3MjT_Ko0nqFgkMoS')
|