A Python script to crosspost Ghost articles to Medium. Written for Zapier.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
medium_crosspost
.coveragerc
.gitignore
.pylintrc
.travis.yml
LICENSE
Makefile
README.md
requirements.txt
setup.py

README.md

medium-crosspost

DUB 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()