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

Feature Request: Work with offline ZIM files/kiwix #15

Closed
klundry opened this issue Jul 7, 2022 · 4 comments
Closed

Feature Request: Work with offline ZIM files/kiwix #15

klundry opened this issue Jul 7, 2022 · 4 comments

Comments

@klundry
Copy link

klundry commented Jul 7, 2022

It would be really nice to be able to use wik in conjunction with local offline wikipedia dumps. I'm not a programmer but I'm a big command line enthusiast and I tried modifying the wiki URL in info.py to the local one I'm running. It will display an article when giving the exact name but doesn't return any results when searching. I'm clearly out of my element here :) but it doesn't appear to be too far away from being able to do it. Thoughts?

@yashsinghcodes
Copy link
Owner

wik is web-scrapping based tool so i don't know if the offline dumps (the one you're talking about) have same elements names (tags,class,id) as the original Wikipedia when searching. I would love to into it if can share the source code of web-page when searching for the article in web-browser.

@klundry
Copy link
Author

klundry commented Jul 11, 2022

Cool. I'll see if I can paste some of the html that it produces. I'm using kiwix and the CLI tool kiwix-serve to serve the archive and the pages have a more basic and simplified layout that regular wikipedia. If wik can be modified to work with the ZIM files I wonder if it would then work with any of the ZIM files that kiwix has available? That would be pretty neat.

@yashsinghcodes
Copy link
Owner

I don't think so, as they might use different tags and class names for different zim files, for example if you take arch wiki zim files it is totally different in terms of formatting. Hope it makes sense

@yashsinghcodes
Copy link
Owner

The thread is no longer active hence closing. Will look into the feature request in future. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants