Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to ZIM files from upload.wikimedia.org #101

Open
benoit74 opened this issue Nov 10, 2024 · 2 comments
Open

Impossible to ZIM files from upload.wikimedia.org #101

benoit74 opened this issue Nov 10, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@benoit74
Copy link
Collaborator

See openzim/zim-requests#272 (comment)

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 benoit74 added enhancement New feature or request question Further information is requested labels Nov 10, 2024
@rgaudin
Copy link
Member

rgaudin commented Nov 11, 2024

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

@rgaudin rgaudin added good first issue Good for newcomers and removed question Further information is requested labels Nov 11, 2024
@benoit74
Copy link
Collaborator Author

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 openzim/python-scraperlib#214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants