2015-06-09 150 views
1

在新的API文檔中寫道,要使用一個方面,您可以用這種方式將它添加到url中"&facet=location,us:0,fr:0",但是不會在任何地方寫入如何指定多個構面。linkedin公司搜索API多方面?

我想要做的是將我的搜索結果限制爲industrylocation

這是我的嘗試:

application.search_company(selectors=[{'companies': 
       ['industries','locations']}], 
        params={'count':100,'universal-name':'linkedin','facet':'location,us:84','facet':'company-size,H', 
       'facet':'industry,43'}))#doesnt work it just picks the last one 

我也試過:

application.search_company(selectors=[{'companies': 
      ['industries','locations']}], 
       params={'count':100,'universal-name':'linkedin', 
       'facet':'company-size,H,industry,43'}))#didnt work ignored industry 

這:

application.search_company(selectors=[{'companies': 
      ['industries','locations']}], 
       params={'count':100,'universal-name':'linkedin', 
       'facets':['company-size,H','industry,43']}))#didnt work (error) 

回答