Skip to content

Commit 435fa0a

Browse files
author
Kenneth Reitz
authored
Update README.md
1 parent 5883987 commit 435fa0a

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,17 @@ The `s` variable now contains a `SerpResults` object, which acts just like a sta
3636

3737
Let’s print the first result:
3838

39-
>>> print(s["organic_results"][0]["link"])
40-
https://en.wikipedia.org/wiki/Coffee
39+
```pycon
40+
>>> s["organic_results"][0]["link"]
41+
'https://en.wikipedia.org/wiki/Coffee'
42+
```
4143

4244
Let’s print the title of the first result, but in a more Pythonic way:
4345

44-
>>> print(s["organic_results"][0].get("title"))
45-
Coffee - Wikipedia
46+
```pycon
47+
>>> s["organic_results"][0].get("title")
48+
'Coffee - Wikipedia'
49+
```
4650

4751
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.
4852

@@ -52,7 +56,7 @@ Documentation is [available on Read the Docs](https://serpapi-python.readthedocs
5256

5357
## License
5458

55-
MIT
59+
MIT License.
5660

5761
## Contributing
5862

0 commit comments

Comments
 (0)