New script and options for making offline web browsed content of mediawiki dump#110
Open
svamberg wants to merge 9 commits into
Open
New script and options for making offline web browsed content of mediawiki dump#110svamberg wants to merge 9 commits into
svamberg wants to merge 9 commits into
Conversation
This script build tree of files of html pages (one page of wiki equal one html page) from WikiExtractor output. This is very simple offline access to content of your MediaWiki. Also make index.html with sorted all stored pages.
Add some options and better output for linking pages between themselves.
Fixed new lines.
Better reading.
Better reading.
Remove some newlines
Wrap too long lines.
Make better links between pages.
Collaborator
|
Could you please convert this to Python? |
Collaborator
|
redirect = False if options.redirect_insert else True should be just: redirect = not options.redirect_insert |
Author
|
I am begginer in Python (this is my first changes in Python). I am not able convert script from Perl to Python, sorry. Thanks for syntax correction, I will update it. |
aftereffect of comment in WikiExtractor#110
Author
|
Update condition by recommendation. |
|
This seems maybe helpful. Is there no way to "star" these things and watch for changes? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New options (and some improvements) in WikiExtractor.py are used in makehtmlfiles.pl for building tree of html files. For further information read README.md in last Example section.