nautilus icon indicating copy to clipboard operation
nautilus copied to clipboard

Impossible to ZIM files from upload.wikimedia.org

Open benoit74 opened this issue 1 year ago • 2 comments

See https://github.com/openzim/zim-requests/issues/272#issuecomment-2466938768

Since files are hosted on upload.wikimedia.org, we must comply with their User-Agent policy at https://meta.wikimedia.org/wiki/User-Agent_policy

I suggest we add a CLI option to pass a custom User-Agent to be used when downloading the nautilus files.

benoit74 avatar Nov 10 '24 21:11 benoit74

Indeed ; shouldn't scraperlib do this by default for stream_file?

rgaudin avatar Nov 11 '24 08:11 rgaudin

shouldn't scraperlib do this by default for stream_file?

yes for upload.wikimedia.org ; CLI argument would still help for "less known" websites.

opened https://github.com/openzim/python-scraperlib/issues/214

benoit74 avatar Nov 11 '24 09:11 benoit74