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.9.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

medium_crosspost-0.1.9-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file medium-crosspost-0.1.9.tar.gz.

File metadata

  • Download URL: medium-crosspost-0.1.9.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for medium-crosspost-0.1.9.tar.gz
Algorithm Hash digest
SHA256 a889753c57bdf05e77cf0b8303a3bf52cf26d057948e345d3573f7ca52d99957
MD5 f2d3d08aac390dcde77d0a34769e892e
BLAKE2b-256 110f28c6dc599a125fb38fbbd05cdfa1ce0ecf3b8ebda579979f3afb319b6a3c

See more details on using hashes here.

File details

Details for the file medium_crosspost-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: medium_crosspost-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for medium_crosspost-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 45df166798eedc5ea646d09b63b7404aaac735f83850fa11444f385d998821f3
MD5 90821d296fdfc503052ab5b15f917689
BLAKE2b-256 b576ba679747e37c4e41a94383d5979fb142b374372809b5b5838b1b559dfb4a

See more details on using hashes here.

Supported by

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