Skip to main content

Easily crosspost articles to Medium

Project description

medium-crosspost

DUB Dependabot Status Build Status Test Coverage Maintainability

A Python script to crosspost articles to Medium.

Accompanies this blog post, which goes into depth on crossposting between Ghost and Medium.

Installation:

pip install medium-crosspost

Basic Usage:

from medium_crosspost import MediumCrosspost

input_data = {
    "title": "Fantastic Article Name!",
    "canonicalUrl": "https://www.example.com/fantastic-article-name",
    "integrationToken": "super-secret-medium-integration-token",
    "content": "<html><head></head><body>Content is all about actual HTML-encoded article content.</body></html>",
    "tags": "can,be,a,list,or,comma,separated,string",
}

crosspost = MediumCrosspost(input_data)
result = crosspost.post()

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

medium-crosspost-0.1.0.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

medium_crosspost-0.1.0-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

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