Skip to content

ma00/python-substack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Substack

Introduction

This is an unofficial library providing a Python interface for Substack. I am in no way affiliated with Substack. It works with Python versions from 3.7+.

Installation

You can install python-substack using:

$ pip install python-substack

Usage

Set the following environment variables by creating a .env file:

PUBLICATION_URL=https://ma2za.substack.com
EMAIL=
PASSWORD=
USER_ID=

The only way I found to discover the USER_ID is to inspect the payload to a /drafts request. Under the fields draftBylines or postBylines there is a subfield user_id or id

The .env file will be ignored by git but always be careful.

About

Substack API python implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%