@@ -15,7 +15,7 @@ Python 3+
1515 pip install outscraper
1616
1717 `Link to the python package
18- page <https://pypi.org/project/google-services-api /> `__
18+ page <https://pypi.org/project/outscraper /> `__
1919
2020Initialization
2121---------------
@@ -24,32 +24,32 @@ Initialization
2424
2525 from outscraper import ApiClient
2626
27- api_client = ApiClient(api_key = ' SECRET_API_KEY' )
27+ client = ApiClient(api_key = ' SECRET_API_KEY' )
2828
2929 Scrape Google Search
3030---------------------------
3131
3232.. code :: python
3333
3434 # Search for businesses in specific locations:
35- result = api_client .google_maps_search(' restaurants brooklyn usa' , limit = 20 , language = ' en' )
35+ result = client .google_maps_search(' restaurants brooklyn usa' , limit = 20 , language = ' en' )
3636
3737 # Googel Search
38- result = api_client .google_search(' bitcoin' )
38+ result = client .google_search(' bitcoin' )
3939
4040 Scrape Google Maps (Places)
4141---------------------------
4242
4343.. code :: python
4444
4545 # Search for businesses in specific locations:
46- result = api_client .google_maps_search(' restaurants brooklyn usa' , limit = 20 , language = ' en' )
46+ result = client .google_maps_search(' restaurants brooklyn usa' , limit = 20 , language = ' en' )
4747
4848 # Get data of the specific place by id
49- result = api_client .google_maps_search(' ChIJrc9T9fpYwokRdvjYRHT8nI4' , language = ' en' )
49+ result = client .google_maps_search(' ChIJrc9T9fpYwokRdvjYRHT8nI4' , language = ' en' )
5050
5151 # Search with many queries (batching)
52- result = api_client .google_maps_search([
52+ result = client .google_maps_search([
5353 ' restaurants brooklyn usa' ,
5454 ' bars brooklyn usa' ,
5555 ], language = ' en' )
@@ -60,47 +60,47 @@ Scrape Google Maps Reviews
6060.. code :: python
6161
6262 # Get reviews of the specific place by id
63- result = api_client .google_maps_reviews(' ChIJrc9T9fpYwokRdvjYRHT8nI4' , reviewsLimit = 20 , language = ' en' )
63+ result = client .google_maps_reviews(' ChIJrc9T9fpYwokRdvjYRHT8nI4' , reviewsLimit = 20 , language = ' en' )
6464
6565 # Get reviews for places found by search query
66- result = api_client .google_maps_reviews(' Memphis Seoul brooklyn usa' , reviewsLimit = 20 , limit = 500 , language = ' en' )
66+ result = client .google_maps_reviews(' Memphis Seoul brooklyn usa' , reviewsLimit = 20 , limit = 500 , language = ' en' )
6767
6868 # Get only new reviews during last 24 hours
6969 from datetime import datetime, timedelta
7070 yesterday_timestamp = int ((datetime.now() - timedelta(1 )).timestamp())
7171
72- result = api_client .google_maps_reviews(
72+ result = client .google_maps_reviews(
7373 ' ChIJrc9T9fpYwokRdvjYRHT8nI4' , sort = ' newest' , cutoff = yesterday_timestamp, reviewsLimit = 100 , language = ' en' )
7474
7575 Scrape Google Maps Photos
7676-------------------------
7777
7878.. code :: python
7979
80- result = api_client .google_maps_photos(
80+ result = client .google_maps_photos(
8181 ' Trump Tower, NY, USA' , photosLimit = 20 , language = ' en' )
8282
8383 Scrape Google Maps Directions
8484-----------------------------
8585
8686.. code :: python
8787
88- result = api_client .google_maps_directions([' 29.696596, 76.994928 30.7159662444353, 76.8053887016268' , ' 29.696596, 76.994928 30.723065, 76.770169' ])
88+ result = client .google_maps_directions([' 29.696596, 76.994928 30.7159662444353, 76.8053887016268' , ' 29.696596, 76.994928 30.723065, 76.770169' ])
8989
9090 Scrape Google Play Reviews
9191--------------------------
9292
9393.. code :: python
9494
95- result = api_client .google_play_reviews(
95+ result = client .google_play_reviews(
9696 ' com.facebook.katana' , reviewsLimit = 20 , language = ' en' )
9797
9898 Emails And Contacts Scraper
9999---------------------------
100100
101101.. code :: python
102102
103- result = api_client .emails_and_contacts([' outscraper.com' ])
103+ result = client .emails_and_contacts([' outscraper.com' ])
104104
105105 Responses examples
106106------------------
0 commit comments