yelp-python icon indicating copy to clipboard operation
yelp-python copied to clipboard

Multi language support does't work.

Open venuswu opened this issue 8 years ago • 0 comments

The following code does't work when the parameter 'lang' changes. Only English results are shown.

import io
import json
from yelp.client import Client
from yelp.oauth1_authenticator import Oauth1Authenticator

with io.open('config_secret.json') as cred:
    creds = json.load(cred)
    auth = Oauth1Authenticator(**creds)
    client = Client(auth)

    params = {
          'lang' : 'cn'
    }
    response = client.get_business('yelp-san-francisco', **params)
    print response.business.name
    print response.business.categories

venuswu avatar Nov 21 '16 03:11 venuswu