pywb
pywb copied to clipboard
params limit set
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
@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.
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.