Metadata-Version: 2.1
Name: bye-wiki
Version: 0.0.3
Summary: Say goodbye to your wikis! Python command-line script to convert MediaWiki pages to other formats with pandoc
Home-page: https://github.com/jwflory/bw
Author: Justin W. Flory
Author-email: contact@jwf.io
License: BSD-3-Clause
Keywords: asciidoc,data,wiki,mediawiki,markdown,documentation,migration,pandoc
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3
Description-Content-Type: text/markdown
License-File: LICENSE.txt

bye_wiki (bw)
=============

[![License: BSD 3-Clause License][1]][2]

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][3] 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:

```sh
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.

```sh
bw --title "El Ten Eleven" --out ~/ete.md
```

### Example 2

Convert _Licensing:Main_ from the [Fedora Project][4] MediaWiki to a Markdown document.

```sh
bw --url fedoraproject.org/w --title "Licensing:Main" --out licensing.md
```

### Example 3

Convert _MusicBrainz Principles_ from the [MusicBrainz][5] MediaWiki to a Markdown document, with the `--atx` flag removed from `pandoc`:

```sh
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][6].


## Legal

Licensed under [BSD 3-Clause License][2].

[1]: https://img.shields.io/badge/License-BSD%203--Clause-blue.svg
[2]: https://opensource.org/licenses/BSD-3-Clause "BSD-3-Clause License - opensource.org"
[3]: https://pandoc.org/
[4]: https://getfedora.org
[5]: https://musicbrainz.org
[6]: https://github.com/jwflory/bw/blob/master/.github/CONTRIBUTING.md "How to contribute to the project"
