baidu 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/baidu.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0768a46d047958a319217e93287ae6447e2096f
|
4
|
+
data.tar.gz: 60c1c2ddb45e5f19f399563c7be4a2700dd68b46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 277b7e0ad48bbfd062849c32dc12f1d6aa7e53b1bc05bf903cebf7e8471b4301fddcf70e77b10fe01103a3e8530d00504eb466d8d9ca0165747c9e6d548a7535
|
7
|
+
data.tar.gz: f978c496e06b9b80361658e9450c91d32c68fcf899d8a62f83a7d76697f17548f0928524201a3d3e72b8b6f697dda9ab9a1d16a219b58322be1b29b72fba9ee8
|
data/lib/baidu.rb
CHANGED
@@ -340,7 +340,7 @@ class BaiduResult < SearchResult
|
|
340
340
|
@ranks
|
341
341
|
end
|
342
342
|
|
343
|
-
def
|
343
|
+
def ads_bottom
|
344
344
|
ads = {}
|
345
345
|
id=0
|
346
346
|
@page.search("//table[@class='EC_mr15']|//table[@class='ec_pp_f']").each do |table|
|
@@ -353,7 +353,7 @@ class BaiduResult < SearchResult
|
|
353
353
|
end
|
354
354
|
ads
|
355
355
|
end
|
356
|
-
def
|
356
|
+
def ads_top
|
357
357
|
ads = {}
|
358
358
|
@page.search("//table[@class='EC_mr15']|//table[@class='ec_pp_f']").each do |table|
|
359
359
|
id = table['id']
|