'Returns a list of results for the given author id, alias or search query.'

def profile(self, query, start=1, count=10, **kwargs):

    url = URL((TWITTER + 'users/search.json?'), method=GET, query={'q': query, 'page': start, 'count': count})
    url = self._authenticate(url)
    kwargs.setdefault('cached', True)
    kwargs.setdefault('unicode', True)
    kwargs.setdefault('throttle', self.throttle)
    try:
        data = URL(url).download(**kwargs)
        data = json.loads(data)
    except HTTP400BadRequest:
        return []
    return [Result(url=('https://www.twitter.com/' + x.get('screen_name', '')), id=x.get('id_str', ''), handle=x.get('screen_name', ''), name=x.get('name', ''), text=x.get('description', ''), language=x.get('lang', ''), date=x.get('created_at'), locale=x.get('location', ''), picture=x.get('profile_image_url', ''), friends=int(x.get('followers_count', 0)), posts=int(x.get('statuses_count', 0))) for x in data]
