1

在新的 API 文档中,它写道要使用一个构面,您可以通过这种方式将其添加到 url 中,"&facet=location,us:0,fr:0"但它没有写在任何地方如何指定多个构面。

我想要做的是通过industryand限制我的搜索结果location

这些是我的尝试:

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)
4

1 回答 1

1

最后一个是正确的,您只需要在您指定的页面中使用构面而不是构面“ https://developer-programs.linkedin.com/documents/company-search

facets 是您从请求中获得的输出,而 facet 是输入。

于 2015-06-09T22:47:18.057 回答