searchbing 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +4 -3
- metadata +1 -1
data/README.md
CHANGED
|
@@ -41,9 +41,10 @@ or optionally specify an offset for your search, to start retrieving results fro
|
|
|
41
41
|
|
|
42
42
|
bing_results = bing_image.search("puffin", 25)
|
|
43
43
|
|
|
44
|
-
parse the results
|
|
44
|
+
parse the results(recent changes require parsing with symbols, also please note the data structure of the response coming from bing has also changed)
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
puts bing_results[0][:Image][0][:MediaUrl]
|
|
47
|
+
|
|
48
|
+
display the total number of results
|
|
48
49
|
|
|
49
50
|
puts bing_results[0]["ImageTotal"]
|