'Returns an iterator over all article titles (for a given namespace id).'

def index(self, namespace=0, start=None, count=100, cached=True, **kwargs):

    kwargs.setdefault('unicode', True)
    kwargs.setdefault('throttle', self.throttle)
    id = kwargs.pop('_id', 'title')
    while (start != (-1)):
        url = URL(self._url, method=GET, query={'action': 'query', 'list': 'allpages', 'apnamespace': namespace, 'apfrom': (start or ''), 'aplimit': min(count, 500), 'apfilterredir': 'nonredirects', 'format': 'json'})
        data = url.download(cached=cached, **kwargs)
        data = json.loads(data)
        for x in data.get('query', {}).get('allpages', {}):
            if x.get(id):
                (yield x[id])
        start = data.get('query-continue', {}).get('allpages', {})
        start = start.get('apcontinue', start.get('apfrom', (-1)))
    raise StopIteration
