https://github.com/dumbmachine/migrate-ccextractor
https://github.com/dumbmachine/migrate-ccextractor
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dumbmachine/migrate-ccextractor
- Owner: DumbMachine
- Created: 2020-03-05T20:11:21.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-11T05:45:00.000Z (about 6 years ago)
- Last Synced: 2025-04-05T11:35:20.649Z (about 1 year ago)
- Language: PHP
- Size: 98.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# Convert Doku
This is a small tool to convert pages from `DokuWiki` to `FastPages`.
### Requirements:
- `php`, used by a script to convert pages.
- `python`, used to correct the mistakes of above tool.
- `python packages`, run the following:
```bash
$ cd convert_doku
$ pip install -r requirements.txt
```
### Running:
To ways to run the script:
- using a `url` of the `DokuWiki` page:
```bash
$ cd convert_doku
$ python convert_doku_page.py --url
```
- using `filename` of the `DokuWiki` page, if you have the `source` of the page in `.txt` file:
```bash
$ cd convert_doku
$ python convert_doku_page.py --file
```
### Features:
Currently the tool can take care of the following:
- Renaming the page to the format required by `fastpages`, i.e, `-post_name`.
- Handling the embedding of `youtube` pages.
- Handling `media`, like images. This works by linking to the media on from `https://ccextractor.org/_media/{media}`.
- Correct the mistakes of the `php` converter tool used. Big thanks to [DokuWiki-to-Markdown-Converter](https://github.com/ludoza/DokuWiki-to-Markdown-Converter). (Correct the absolute urls and relative urls by converting them to format required by `fastpages`).
### TODO:
- [ ] Some pages give exception because finding their last edit date is not allowed, eg private pages.