这是yelp搜索API。
使用this api获取西班牙餐馆。它给了我近150家餐厅,但其中大部分都不是西班牙餐厅类别。
id": "zubuchon-cebu-city",
"name": "Zubuchon",
"image_url": "https://s3-media3.fl.yelpcdn.com/bphoto/7F3B5-2LfivkII9d5i8iaA/o.jpg",
"is_closed": false,
"url": "https://www.yelp.com/biz/zubuchon-cebu-city?adjust_creative=jO7FkmyPhUkuDm8uD3-6gA&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=jO7FkmyPhUkuDm8uD3-6gA",
"review_count": 13,
"categories":[
{"alias": "filipino", "title": "Filipino"},
{"alias": "seafood", "title": "Seafood"},
{"alias": "soup", "title": "Soup"}
],
"rating": 4,
"coordinates":{"latitude": 10.317542, "longitude": 123.894127},
"transactions":[],
"price": "₱₱",
"location":{"address1": "N Escario Street", "address2": "Escario Central", "address3": "", "city": "Cebu City",…},
"phone": "+63322540247",
"display_phone": "+63 32 254 0247",
"distance": 972.4964813519999
...
如何只过滤西班牙餐厅?
答案 0 :(得分:0)
您应该能够将其添加到url参数中。我正在使用python而我只是添加
url_param = {
'term': 'Spanish',
< other params here >
}
根据我的要求