substack-notes-scraper

mohitagw15856/pm-claude-skills

Собирает данные о вовлечённости со страницы Substack Notes и экспортирует в .xlsx.

Звёзды1 573
Авторmohitagw15856

Установка

SKILL.md

Substack Notes Scraper

Substack has no public API for Notes analytics. You can't see likes, comments, and restacks in one place without scrolling through your feed manually. This skill scrapes the rendered Notes page, filters to only your original content, and exports everything to a spreadsheet you can actually analyze.

Credit: Originally created by a Substack newsletter author — adapted and extended for this library.


Required Inputs

InputFormatExample
Notes URLFull URL to the Notes tabhttps://substack.com/@handle/notes
Author handle or nameExact handle or display name@handle or Jane Smith
Date rangePlain English or explicit rangelast 30 days or Jan 2026 – Mar 2026

Claude will ask for these if not provided upfront.


Output Structure

File

substack-notes-[handle]-[YYYY-MM-DD].xlsx

Sheet: "Notes Data"

ColumnDescription
DatePublication date (YYYY-MM-DD)
Text PreviewFirst 200 characters of the note
Full TextComplete note text
LikesLike count at time of scrape
CommentsComment count
RestacksRestack count
Total EngagementLikes + Comments + Restacks
LinkDirect URL to the note
Note Typeoriginal or restack

Formatting applied:

  • Row 1: frozen header row
  • Auto-filter enabled on all columns
  • Top 20% by Likes column: highlighted yellow (#FFF2CC)
  • Column widths: auto-fit to content, min 12, max 60

Sheet: "Summary"

Scrape Date:         [YYYY-MM-DD HH:MM UTC]
Author:              [handle]
Date Range:          [start] – [end]
Total Notes:         [n]
Original Notes:      [n]
Restacks Filtered:   [n]

Avg Likes:           [n.n]
Avg Comments:        [n.n]
Avg Restacks:        [n.n]
Avg Total Eng:       [n.n]

Best Note (Likes):   [date] — [first 80 chars] — [n] likes
Best Note (Eng):     [date] — [first 80 chars] — [n] total engagement

Instructions for Claude

Step 1: Validate inputs

Confirm the three required inputs are present. If any are missing, ask before proceeding. Parse the date range into a concrete start date and end date (convert relative ranges like "last 30 days" to explicit dates using today's date).

Step 2: Fetch the Notes page

Use WebFetch to load the Notes URL. Substack Notes pages are JavaScript-rendered — request the full rendered HTML. If WebFetch returns a skeleton page without note content, note this in your response and ask the user to paste the page HTML manually or confirm browser access is available.

Step 3: Paginate through all notes in the date window

Substack Notes load incrementally. Repeat fetching or scrolling until either:

  • A note's date falls outside the target date range (stop loading more), or
  • No new content loads on the next request.

Rate-limit: wait 2 seconds between each paginated request. Do not hammer the endpoint.

Step 4: Parse each note

For every note element found on the page, extract:

  • Date: the timestamp on the note (convert to YYYY-MM-DD)
  • Author: the display name or handle shown on the note
  • Full text: complete body text, stripping HTML tags
  • Text preview: first 200 characters of full text
  • Likes count: the number shown on the like/heart counter
  • Comments count: the number shown on the comment counter
  • Restacks count: the number shown on the restack counter
  • Link: the direct permalink to the note
  • Note type: original if the author matches the specified author; restack if it belongs to someone else

Step 5: Filter

Keep ALL rows in the data (restacks included as rows with Note Type = restack). The Summary sheet stats should count only original notes. Mark restacks clearly so the user can filter them out themselves in Excel if preferred.

Apply date filter: exclude any note outside the specified date range.

Step 6: Calculate Total Engagement

For each row: Total Engagement = Likes + Comments + Restacks

Step 7: Identify top 20% by Likes

Sort original notes by Likes descending. Mark the top 20% (round up) for conditional formatting. These rows will be highlighted yellow in the output file.

Step 8: Build the .xlsx file

Use Python with openpyxl to generate the file. Structure:

# Required libraries
import openpyxl
from openpyxl.styles import PatternFill, Font, Alignment
from openpyxl.utils import get_column_letter
from datetime import datetime

# Sheet 1: Notes Data
# - Write header row, bold, freeze row 1
# - Write all data rows
# - Apply auto-filter: ws.auto_filter.ref = ws.dimensions
# - Apply yellow fill to top-20% rows by likes
# - Auto-size columns (iterate cells to find max length)

# Sheet 2: Summary
# - Write summary stats as key-value pairs, no table format

Name the file substack-notes-[handle]-[YYYY-MM-DD].xlsx using today's date.

Step 9: Report back

After generating the file, report:

  • File path
  • Total notes found, original vs. restacks
  • Date range actually covered
  • Top 3 notes by total engagement (date + preview + stats)
  • Any notes or warnings (e.g., page didn't fully load, some dates were ambiguous)

Quality Checks

  • <!-- -->All three required inputs were confirmed before starting
  • <!-- -->Rate limiting honored: 2-second delay between paginated requests
  • <!-- -->Author filter applied correctly — restacks are included as rows but flagged, not silently dropped
  • <!-- -->Date range filter applied — no notes outside the window appear in the data
  • <!-- -->Total Engagement column is Likes + Comments + Restacks (not hardcoded)
  • <!-- -->Top 20% highlight is based on the actual data distribution, not a fixed threshold
  • <!-- -->Header row is frozen and auto-filter is active
  • <!-- -->Summary sheet stats reference only original notes, not restacks
  • <!-- -->File is named with the author handle and today's date
  • <!-- -->If the page failed to load properly, the user was told — not silently given an empty file

Anti-Patterns

  • <!-- -->Do not proceed without a valid Substack handle or profile URL — scraping without a specific target cannot be completed
  • <!-- -->Do not ignore rate-limit responses from Substack — implement backoff and reduce request frequency before retrying
  • <!-- -->Do not export data without conditional formatting and summary stats — raw data without visualisation is not the expected output
  • <!-- -->Do not attempt to access private or subscriber-only notes — this skill is for public Notes content only
  • <!-- -->Do not produce output without a clear date range filter — undated exports make trend analysis impossible

Example Trigger Phrases

  • "Scrape my Substack Notes and export to Excel — my handle is @handle, last 60 days"
  • "Use the substack-notes-scraper skill on https://substack.com/@handle/notes for Q1 2026"
  • "Pull my notes engagement data into a spreadsheet"
  • "Export my Substack Notes stats with likes and restacks — author: Jane Smith, Jan–Mar 2026"
  • "Run the Substack scraper on my notes page and show me which posts performed best"

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: substack-notes-scraper](https://darkplay.ru/ai/skills/mohitagw15856-pm-claude-skills-substack-notes-scraper)

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

brightdata-pluginanthropics · Веб-скрапинг, поиск в Google, извлечение структурированных данных и интеграция…
100 комп.
carta-crmanthropics · Управление Carta CRM в диалоговом режиме — поиск, добавление, обновление и обогащение…
100 комп.
monday-crmanthropics · Управление monday CRM на естественном языке. Создание пайплайна с нуля, утренний брифинг…
100 комп.
brightdata-pluginanthropics · Веб-скрапинг, поиск Google, извлечение структурированных данных и интеграция MCP-сервера…
233 комп.
carta-crmanthropics · Управление Carta CRM в диалоговом режиме — поиск, добавление, обновление и обогащение…
233 комп.
monday-crmanthropics · Управление monday CRM на естественном языке: построение воронки с нуля, утренний брифинг…
233 комп.
Octopus Release Notes With Mcpgithub · Генерирует примечания к релизу в Octopus Deploy. Инструменты этого сервера MCP…
36 140 ★
markdown-html-skillsalirezarezvani · Конвертация markdown в интерактивный HTML: 5 навыков, включая конвертер слайдов.
510 комп.
meetingsalirezarezvani · Дисциплина встреч: оценка стоимости, повестки и извлечение задач.
510 комп.
agent-native-research-artifactorchestra-research · Инструменты Agent-Native Research Artifact (ARA): компиляция любого исследовательского…
96 комп.

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8