轻松将文章交叉发布到中

medium-crosspost的Python项目详细描述


中横杆

DUBDependabot StatusBuild StatusTest CoverageMaintainability

将文章交叉发布到medium的python脚本。

伴随着this blog post,深入到GhostMedium之间的交叉投递。

安装:

pip install medium-crosspost

基本用法:

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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java Spring REST API JSON在postman中显示,但在测试中未“看到”   java如何以编程方式检查旋转设备?   java力穷举开关   amazon web services DynamoDB从Java更新列表失败   java Android studio IDE更改波斯注释字体   java如何将postgresql添加到OpenShift Spring应用程序?   java RecycleView分页是否在末尾添加新项?   如何通过java获取移动设备信息?   java为什么Apache Commons StringEscapeUtils escapeXML10不能在groovy中工作?   函数式编程java curry现有的静态函数   java与JList的合作