Skip to main content

Convert articles from MT to Hugo

Project description

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
        - お知らせ

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mt-to-hugo-article-converter-0.0.5.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file mt-to-hugo-article-converter-0.0.5.tar.gz.

File metadata

  • Download URL: mt-to-hugo-article-converter-0.0.5.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for mt-to-hugo-article-converter-0.0.5.tar.gz
Algorithm Hash digest
SHA256 57c6dfb944e1ed4bc0b285225917dfec17a9a7f28870d9e115ec9c5f2836ecf7
MD5 132453515d0e70244d79817985bc1ec6
BLAKE2b-256 b00c096ab53d29fb137c4385c03786f23d35ddf256f23fbbfb11fbe0db828b31

See more details on using hashes here.

File details

Details for the file mt_to_hugo_article_converter-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: mt_to_hugo_article_converter-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for mt_to_hugo_article_converter-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9fb007955fdf787bf90a5c8fa3eb2fbcc52c23fa779d5cfbd7237e38884ec871
MD5 dfb901c7846ee44a45770d8afad31684
BLAKE2b-256 08ccbbfcb2ff53185c2370d553d0eee596982906af4e2a189cea4da4cc98aee0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page