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.7.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for python_substack-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b68429fd472560b716bbc746f5943a08bfc78841e78cefe8ad136820c1047d4 |
|
MD5 | 97ab7c3a54932d98564f1fc6f038d5f6 |
|
BLAKE2b-256 | 5dc06b119677498f1190d6f7b145124c46e69adb807548a99f81ba93887d04ca |