Easily crosspost articles to Medium
Project description
# medium-crosspost
[![DUB](https://img.shields.io/dub/l/vibe-d.svg)]()
[![Build Status](https://travis-ci.org/typenil/ghost-crosspost-medium.svg?branch=master)](https://travis-ci.org/typenil/ghost-crosspost-medium)
[![Test Coverage](https://api.codeclimate.com/v1/badges/f64916fe2fcbad4e9f7c/test_coverage)](https://codeclimate.com/github/typenil/ghost-crosspost-medium/test_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/f64916fe2fcbad4e9f7c/maintainability)](https://codeclimate.com/github/typenil/ghost-crosspost-medium/maintainability)
A Python script to crosspost articles to Medium.
Accompanies [this blog post](https://typenil.com/automatic-ghost-medium-cross-posting/), which goes into depth on crossposting between [Ghost](https://ghost.org/) and [Medium](https://medium.com/).
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()
```
[![DUB](https://img.shields.io/dub/l/vibe-d.svg)]()
[![Build Status](https://travis-ci.org/typenil/ghost-crosspost-medium.svg?branch=master)](https://travis-ci.org/typenil/ghost-crosspost-medium)
[![Test Coverage](https://api.codeclimate.com/v1/badges/f64916fe2fcbad4e9f7c/test_coverage)](https://codeclimate.com/github/typenil/ghost-crosspost-medium/test_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/f64916fe2fcbad4e9f7c/maintainability)](https://codeclimate.com/github/typenil/ghost-crosspost-medium/maintainability)
A Python script to crosspost articles to Medium.
Accompanies [this blog post](https://typenil.com/automatic-ghost-medium-cross-posting/), which goes into depth on crossposting between [Ghost](https://ghost.org/) and [Medium](https://medium.com/).
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
Release history Release notifications | RSS feed
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.0.1.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for medium_crosspost-0.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da98c103b4530b0d1e1dd4e5c6e230e126a2d5980d15b513113ee30b18797c8d |
|
MD5 | 11eb0b123c60a861caf85954799764b8 |
|
BLAKE2b-256 | ea89873fd775129b31ee355dcf6e7e807517befd5098082af726dffa2c00c839 |