Say goodbye to your wikis! Python command-line script to convert MediaWiki pages to other formats with pandoc
Project description
bye_wiki (bw)
Say goodbye to your wikis! Python command-line tool to convert MediaWiki pages to Markdown with pandoc
About
bye_wiki (bw) is a Python command-line script to convert MediaWiki pages into Markdown.
This makes migrating documentation and pages from a MediaWiki server to somewhere else.
Regardless of whatever "somewhere else" means for you, this tool provides a basic Markdown conversion for you to work with in a new platform.
bye_wiki is more or less a fancy wrapper for requests and pandoc.
How to use
NOTE: You must already have pandoc installed on your system for this script to work!
Once you have pandoc, the easiest way to get started with bye_wiki is to install from PyPI:
pip3 install --user bye-wiki
The CLI --help menu provides more detailed information about how to use bye_wiki.
Some examples are below:
Example 1
Convert El Ten Eleven Wikipedia page to a Markdown document.
bw --title "El Ten Eleven" --out ~/ete.md
Example 2
Convert Licensing:Main from the Fedora Project MediaWiki to a Markdown document.
bw --url fedoraproject.org/w --title "Licensing:Main" --out licensing.md
Example 3
Convert MusicBrainz Principles from the MusicBrainz MediaWiki to a Markdown document, with the --atx flag removed from pandoc:
bw --url wiki.musicbrainz.org --title MusicBrainz_Principles --out mb-principles.md --atx-off
Hint:
If you aren't sure if you want --atx-off or not, you do not.
It is an opinionated format for converting documents but some writers may prefer to not have ATX-style headers.
How to contribute
See CONTRIBUTING.md.
Legal
Licensed under BSD 3-Clause License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bye_wiki-0.0.3.tar.gz.
File metadata
- Download URL: bye_wiki-0.0.3.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e2f422fae6e5f0f6241ab98c2fe2d9cceb9d371c65d420002492f24c43c6922
|
|
| MD5 |
079846d2a000d22f27f1d2a95aba91e3
|
|
| BLAKE2b-256 |
f5a2c68894d2f8d19c553828c5ffa56bdffa6486e4a30ac57229c67e4f49c226
|
File details
Details for the file bye_wiki-0.0.3-py3-none-any.whl.
File metadata
- Download URL: bye_wiki-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3fc76f215231848c6a4394e6e5256cc22110590feeceed7037fefdc209ef4c5
|
|
| MD5 |
a083b35209749e96b5bd3e648f3688e2
|
|
| BLAKE2b-256 |
0e540d796a4556f24e96d09d7439902e49027fa0e19fc9d65a2adf425c3493da
|