A Python wrapper around the Substack API.
Project description
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.
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
python_substack-0.1.6.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for python_substack-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f7317f05b07de0c1170a5316911e0b79f28a277c30771c992b75d2c147ed792 |
|
MD5 | 6e36a847759d8c68080915ec54627b8e |
|
BLAKE2b-256 | 48c0dd9b69075c16bdf93ef537979acf3c42cd1a83aef7a870d130d9d24c63ad |