def location_feed(self, location_id, **kwargs):
        """
        Get a location feed.

        :param location_id:
        :param kwargs:
            - **count**: Number of records to return
            - **end_cursor**: For pagination
        :return:
        """
        count = kwargs.pop('count', 16)
        if count > 50:
            raise ValueError('count cannot be greater than 50')

        end_cursor = kwargs.pop('end_cursor', None) or kwargs.pop('max_id', None)

        variables = {
            'id': location_id,
            'first': int(count)
        }
        if end_cursor:
            variables['after'] = end_cursor

        query = {
            'query_hash': '1b84447a4d8b6d6d0426fefb34514485',
            'variables': json.dumps(variables, separators=(',', ':'))
        }

        return self._make_request(self.GRAPHQL_API_URL, query=query)

        Get a location feed.

        :param location_id:
        :param kwargs:
            - **count**: Number of records to return
            - **end_cursor**: For pagination
        :return:
        
instagram_web_api/client.py