outscraper / outscraper-python

The library provides convenient access to the Outscraper API from applications written in the Python language. Allows using Outscraper's services from your code.
https://outscraper.com
MIT License
69 stars 18 forks source link

Exception: Response status code: 401 #1

Closed Pablohn26 closed 3 years ago

Pablohn26 commented 3 years ago

Using the main example I am getting a 401 error

./main.py              [25/02/21| 2:08]
Traceback (most recent call last):
  File "./main.py", line 11, in <module>
    business_with_reviews = api_cliet.google_maps_business_reviews('Memphis Seoul brooklyn usa', limit=100, language='en')
  File "/home/foo/google-services-api-pyhton/outscraper/api_client.py", line 153, in google_maps_business_reviews
    raise Exception(f'Response status code: {response.status_code}')
Exception: Response status code: 401

I am using Google API REST and the same API KEY is working, so I do not know the reason

vlad-stack commented 3 years ago

I am using Google API REST...

@Pablohn26 Do you mean you're using the Google API key for the SDK? Please get the API key from Outscraper https://app.outscraper.com/profile in order to use this SDK. Screen Shot 2021-03-10 at 10 11 03 AM

Pablohn26 commented 3 years ago

Oh sorry I meant Google key, I did not realize that. Thanks