pywb icon indicating copy to clipboard operation
pywb copied to clipboard

params limit set

Open Minyar2004 opened this issue 6 years ago • 2 comments

Hi,

I'm using pywb 2.1.0

In pywb/warcserver/index/query.py we can set a param to limit the number of index lines returned (default: 100000 lines).

pywb/warcserver/index/query.py (line 69) :


    @property
    def limit(self):
        return int(self.params.get('limit', 100000))

I whould like to change the limit of returned version.

Is it possible to set this limit param in the config.yaml or in another file without modifying the query.py code source?

Thanks

Minyar2004 avatar Dec 10 '18 13:12 Minyar2004

@Devhercule Setting limit= will limit the number of index lines returned. and according to document, limit can be set in URL query string.

http://localhost:8080/coll/cdx?url=http://example.com/*&page=1&filter=mime:text/html&limit=10

However, if using a ZipNum compressed cluster, the page size limit is enforced and no captures are read beyond the single page.

sydoluciani avatar Dec 02 '20 16:12 sydoluciani

Thank you @sydoluciani for your reply, I already set the limit in the url, but i'm looking for setting it in the config.yaml file.

Minyar2004 avatar Nov 08 '22 15:11 Minyar2004