Skip to main content

MT to Hugo Article Converter

How to try

docker-compose up

And see tmp/output/*


Requirements

  • Python3

Installation

pip3 install mt-to-hugo-article-converter

How to use

mt-to-hugo-article-converter --output-directory=/path/to/out --input-file=/path/to/your-exported-articles.txt

You can use the configuration file that YAML format.

mt-to-hugo-article-converter --config-file=/path/to/config.yml
version: "2019.10.0"
output:
  base_path: tmp/output/
  content_path_fmt: "content/posts/%Y.%m"
  static_path_fmt: "static/posts/%Y.%m"
input:
  path: tmp/example-articles.txt
  start_at: 2018/02/01 00:00:00
  stop_at: 2018/03/01 23:00:00
asset_download:
  enabled: true
  base_url: "https://cdn-ak.f.st-hatena.com"
  filter:
    - regex: 'https?://cdn-ak\.f\.st-hatena\.com'
attribute_map:
  tags:
    from:
      - TAGS
      - CATEGORY
    values:
      news:
        - info
        - お知らせ

Metadata

Release files for mt-to-hugo-article-converter 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mt-to-hugo-article-converter 0.0.5
File Size Uploaded
mt-to-hugo-article-converter-0.0.5.tar.gz 25.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mt-to-hugo-article-converter 0.0.5
File Interpreter ABI Platform
mt_to_hugo_article_converter-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 44.7 kB

Release files / mt-to-hugo-article-converter-0.0.5.tar.gz

Download URL mt-to-hugo-article-converter-0.0.5.tar.gz
Size 25.2 kB
Tags Source
SHA-256 checksum
How to use checksums
57c6dfb944e1ed4bc0b285225917dfec17a9a7f28870d9e115ec9c5f2836ecf7
BLAKE2b-256 checksum
How to use checksums
b00c096ab53d29fb137c4385c03786f23d35ddf256f23fbbfb11fbe0db828b31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release files / mt_to_hugo_article_converter-0.0.5-py3-none-any.whl

Download URL mt_to_hugo_article_converter-0.0.5-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fb007955fdf787bf90a5c8fa3eb2fbcc52c23fa779d5cfbd7237e38884ec871
BLAKE2b-256 checksum
How to use checksums
08ccbbfcb2ff53185c2370d553d0eee596982906af4e2a189cea4da4cc98aee0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page