substackscraper

command module
v0.0.0-...-ed0b12c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2023 License: Unlicense Imports: 2 Imported by: 0

README

Substack Scraper

A small cli tool to grab substack posts (free or paid) and outputs it into markdown files.

Usage of substackscraper:
  -cookie substack.sid
        Substack API cookie (remove the substack.sid prefix)
  -dest string
        Destination folder to write output to (default ".")
  -output string
        Output format: html or md (default "md")
  -pub string
        Name of the Substack publication to scrape (required)
  -since string
        Fetch posts since this date (YYYY-MM-DD) (default "1970-01-01")

Usage

Building:

git clone https://github.com/benclmnt/substackscraper
go build

Running:

You will need to grab your substack cookie from your browser. Without the cookie, it can only fetch the public preview of paid posts.

./substackscraper -pub benclmnt -cookie COOKIE_SUBSTACK.SID_VALUE_ONLY

Note

This CLI relies on a few undocumented substack API version 1. The endpoints might change anytime, breaking the tool.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Encapsulates all the logic for interacting with the Substack API
Encapsulates all the logic for interacting with the Substack API

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL