Skip to content

Commit 67c6bcc

Browse files
committed
Update Readme
1. Fix typo’s 2. Fix examples 3. Update docs href links
1 parent 24637ba commit 67c6bcc

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
[![serpapi-python](https://github.com/serpapi/serpapi-python/actions/workflows/ci.yml/badge.svg)](https://github.com/serpapi/serpapi-python/actions/workflows/ci.yml)
99
</div>
1010

11-
This repository is the home of the *soon–to–be* official Python API wrapper for [SerpApi](https://serpapi.com). This `serpapi` module allows you to access search data in your Python application.
11+
This repository is the home of the official Python API wrapper for [SerpApi](https://serpapi.com). This `serpapi` module allows you to access search data in your Python application.
1212

13-
[SerpApi](https://serpapi.com) supports Google, Google Maps, Google Shopping, Bing, Baidu, Yandex, Yahoo, eBay, App Stores, and more. Check out the [documentation](https://serpapi.com/search-api) for a full list.
13+
[SerpApi](https://serpapi.com) supports Google, Google Maps, Google Shopping, Bing, Baidu, Yandex, Yahoo, eBay, App Stores, and more. Check out the [documentation](https://serpapi.com/search-engine-apis) for a full list.
1414

1515

1616
## Installation
@@ -48,13 +48,14 @@ Let's print the title of the first result, but in a more Pythonic way:
4848
'Coffee - Wikipedia'
4949
```
5050

51-
The [SerpApi.com API Documentation](https://serpapi.com/search-api) contains a list of all the possible parameters that can be passed to the API.
51+
The [SerpApi.com API Documentation](https://serpapi.com/search-engine-apis) contains a list of all the possible parameters that can be passed to the API.
5252

5353
### Error handling
5454

5555
Unsuccessful requests raise `serpapi.HTTPError` or `serpapi.TimeoutError` exceptions. The returned status code will reflect the sort of error that occurred, please refer to [Status and Error Codes Documentation](https://serpapi.com/api-status-and-error-codes) for more details.
5656

5757
```python
58+
import os
5859
import serpapi
5960

6061
# A default timeout can be set here.
@@ -254,19 +255,18 @@ results = client.search({
254255
```
255256
- API Documentation: [serpapi.com/google-autocomplete-api](https://serpapi.com/google-autocomplete-api)
256257

257-
### Search Google Product
258+
### Search Google Immersive Product
258259
```python
259260
import os
260261
import serpapi
261262

262263
client = serpapi.Client(api_key=os.getenv("API_KEY"))
263264
results = client.search({
264-
'engine': 'google_product',
265-
'q': 'coffee',
266-
'product_id': '4887235756540435899',
265+
'engine': 'google_immersive_product',
266+
'page_token': 'eyJlaSI6Im5ZVmxaOXVVTDY2X3A4NFBqTnZELUFjIiwicHJvZHVjdGlkIjoiIiwiY2F0YWxvZ2lkIjoiNTE1NDU2NTc1NTc5MzcxMDY3NSIsImhlYWRsaW5lT2ZmZXJEb2NpZCI6IjI1MDkyMjcwMDUzMjk2NzQwODMiLCJpbWFnZURvY2lkIjoiMTYzOTg5MjU0MDcwMDU4MDA1NTQiLCJyZHMiOiJQQ18zNDg4MDE0MTg3ODgxNzc5NjU0fFBST0RfUENfMzQ4ODAxNDE4Nzg4MTc3OTY1NCIsInF1ZXJ5IjoibGcrdHYiLCJncGNpZCI6IjM0ODgwMTQxODc4ODE3Nzk2NTQiLCJtaWQiOiI1NzY0NjI3ODM3Nzc5MTUzMTMiLCJwdnQiOiJoZyIsInV1bGUiOm51bGx9=',
267267
})
268268
```
269-
- API Documentation: [serpapi.com/google-product-api](https://serpapi.com/google-product-api)
269+
- API Documentation: [serpapi.com/google-immersive-product-api](https://serpapi.com/google-immersive-product-api)
270270

271271
### Search Google Reverse Image
272272
```python
@@ -290,7 +290,7 @@ import serpapi
290290
client = serpapi.Client(api_key=os.getenv("API_KEY"))
291291
results = client.search({
292292
'engine': 'google_events',
293-
'q': 'coffee',
293+
'q': 'Events in Austin',
294294
})
295295
```
296296
- API Documentation: [serpapi.com/google-events-api](https://serpapi.com/google-events-api)
@@ -349,7 +349,6 @@ results = client.search({
349349
'engine': 'google_play',
350350
'q': 'kite',
351351
'store': 'apps',
352-
'max_results': '2',
353352
})
354353
```
355354
- API Documentation: [serpapi.com/google-play-api](https://serpapi.com/google-play-api)
@@ -366,7 +365,7 @@ results = client.search({
366365
'q': 'coffee',
367366
})
368367
```
369-
- API Documentation: [serpapi.com/images-results](https://serpapi.com/images-results)
368+
- API Documentation: [serpapi.com/google-images-api](https://serpapi.com/google-images-api)
370369

371370
## License
372371

0 commit comments

Comments
 (0)