def get_pages(self, namespace, apcontinue=''):
        """Retrieve all pages from a namespace starting from apcontinue."""
        params = {
            "action": "query",
            "list": "allpages",
            "aplimit": self.limit,
            "apnamespace": namespace,
            "format": "json"
        }
        if apcontinue:
            params['apcontinue'] = apcontinue

        return self.call(params)