@@ -61,14 +61,14 @@ Google-Search-API folder.
61
61
``` python
62
62
import os
63
63
os.chdir(" C:\Path_where_repo_is" )
64
- from google import google
64
+ from googleapi import google
65
65
```
66
66
67
67
## Google Web Search
68
68
You can search google web in the following way:
69
69
70
70
``` python
71
- from google import google
71
+ from googleapi import google
72
72
num_page = 3
73
73
search_results = google.search(" This is my query" , num_page)
74
74
```
@@ -96,7 +96,7 @@ GoogleResult:
96
96
Attempts to search google calculator for the result of an expression. Returns a ` CalculatorResult ` if successful or ` None ` if it fails.
97
97
98
98
``` python
99
- from google import google
99
+ from googleapi import google
100
100
google.calculate(" 157.3kg in grams" )
101
101
```
102
102
@@ -122,7 +122,7 @@ Image search uses the selenium & the Firefox driver, therefor you MUST have [Fir
122
122
Perform a google image search on "banana" and filter it:
123
123
124
124
``` python
125
- from google import google, images
125
+ from googleapi import google, images
126
126
options = images.ImageOptions()
127
127
options.image_type = images.ImageType.CLIPART
128
128
options.larger_than = images.LargerThan.MP_4
@@ -235,7 +235,7 @@ Convert between one currency and another using google calculator. Results are re
235
235
Convert 5 US Dollars to Euros using the official 3 letter currency acronym ([ ISO 4217] ( https://en.wikipedia.org/wiki/ISO_4217 ) ):
236
236
237
237
``` python
238
- from google import google
238
+ from googleapi import google
239
239
euros = google.convert_currency(5.0 , " USD" , " EUR" )
240
240
print " 5.0 USD = {0} EUR" .format(euros)
241
241
```
0 commit comments