def adv_search(self, query, **kwargs):
        params = {'search': query.encode('ascii', 'ignore')}
        for arg, val in kwargs.items():
            params[arg] = ','.join(val) if type(val) in (tuple, list) else val

        return self._get_url_json('entities/search.json', **params)
Return entities with names matching the given query, with pagination
dataset/ETHPy150Open sunlightlabs/python-transparencydata/influenceexplorer.py/Entities.adv_search