Skip to content

Commit bcd894a

Browse files
author
vlad-outscraper
committed
update readme
1 parent 06353f4 commit bcd894a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,31 @@ pip install outscraper
1616
```python
1717
from outscraper import ApiClient
1818

19-
api_client = ApiClient(api_key='SECRET_API_KEY')
19+
client = ApiClient(api_key='SECRET_API_KEY')
2020
```
2121
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
2222

2323
## Scrape Google Search
2424

2525
```python
2626
# Googel Search
27-
result = api_client.google_search('bitcoin')
27+
result = client.google_search('bitcoin')
2828

2929
# Googel Search News
30-
result = api_client.google_search_news('election', language='en')
30+
result = client.google_search_news('election', language='en')
3131
```
3232

3333
## Scrape Google Maps (Places)
3434

3535
```python
3636
# Search for businesses in specific locations:
37-
result = api_client.google_maps_search('restaurants brooklyn usa', limit=20, language='en')
37+
result = client.google_maps_search('restaurants brooklyn usa', limit=20, language='en')
3838

3939
# Get data of the specific place by id
40-
result = api_client.google_maps_search('ChIJrc9T9fpYwokRdvjYRHT8nI4', language='en')
40+
result = client.google_maps_search('ChIJrc9T9fpYwokRdvjYRHT8nI4', language='en')
4141

4242
# Search with many queries (batching)
43-
result = api_client.google_maps_search([
43+
result = client.google_maps_search([
4444
'restaurants brooklyn usa',
4545
'bars brooklyn usa',
4646
], language='en')
@@ -51,43 +51,43 @@ result = api_client.google_maps_search([
5151

5252
```python
5353
# Get reviews of the specific place by id
54-
result = api_client.google_maps_reviews('ChIJrc9T9fpYwokRdvjYRHT8nI4', reviewsLimit=20, language='en')
54+
result = client.google_maps_reviews('ChIJrc9T9fpYwokRdvjYRHT8nI4', reviewsLimit=20, language='en')
5555

5656
# Get reviews for places found by search query
57-
result = api_client.google_maps_reviews('Memphis Seoul brooklyn usa', reviewsLimit=20, limit=500, language='en')
57+
result = client.google_maps_reviews('Memphis Seoul brooklyn usa', reviewsLimit=20, limit=500, language='en')
5858

5959
# Get only new reviews during last 24 hours
6060
from datetime import datetime, timedelta
6161
yesterday_timestamp = int((datetime.now() - timedelta(1)).timestamp())
6262

63-
result = api_client.google_maps_reviews(
63+
result = client.google_maps_reviews(
6464
'ChIJrc9T9fpYwokRdvjYRHT8nI4', sort='newest', cutoff=yesterday_timestamp, reviewsLimit=100, language='en')
6565
```
6666

6767
## Scrape Google Maps Photos
6868

6969
```python
70-
result = api_client.google_maps_photos(
70+
result = client.google_maps_photos(
7171
'Trump Tower, NY, USA', photosLimit=20, language='en')
7272
```
7373

7474
## Scrape Google Maps Directions
7575

7676
```python
77-
result = api_client.google_maps_directions(['29.696596, 76.994928 30.7159662444353, 76.8053887016268', '29.696596, 76.994928 30.723065, 76.770169'])
77+
result = client.google_maps_directions(['29.696596, 76.994928 30.7159662444353, 76.8053887016268', '29.696596, 76.994928 30.723065, 76.770169'])
7878
```
7979

8080
## Scrape Google Play Reviews
8181

8282
```python
83-
result = api_client.google_play_reviews(
83+
result = client.google_play_reviews(
8484
'com.facebook.katana', reviewsLimit=20, language='en')
8585
```
8686

8787
## Emails And Contacts Scraper
8888

8989
```python
90-
result = api_client.emails_and_contacts(['outscraper.com'])
90+
result = client.emails_and_contacts(['outscraper.com'])
9191
```
9292

9393
[More examples](https://github.com/outscraper/outscraper-pyhton/tree/master/examples)

0 commit comments

Comments
 (0)