Skip to main content

Socials Daily

Fetch recent posts from public social media accounts and generate a daily summary.

Quick Start

pip install socials-daily

Create accounts.json:

{
  "bluesky": {
    "accounts": [{"handle": "bsky.app"}]
  },
  "instagram": {
    "accounts": [{"handle": "natgeo"}]
  }
}

Run the scraper:

python -m socials_daily scrape

Output:

output/daily-summary-YYYY-MM-DD.md   # Markdown summary
output/daily-summary-YYYY-MM-DD.json # JSON for programmatic use

Usage

Scrape

# Default: Bluesky (free, no auth needed)
python -m socials_daily scrape

# Date range scraping
python -m socials_daily scrape --since 2026-01-01 --till 2026-01-31

# Single day
python -m socials_daily scrape --day 2026-01-15

# Instagram (free, rate-limited)
python -m socials_daily scrape --backend instaloader

# HikerAPI (pay-per-request, ~$0.0006/request)
python -m socials_daily scrape --backend hikerapi --api-key YOUR_KEY

# Xpoz (pre-indexed data, free tier available)
python -m socials_daily scrape --backend xpoz --api-key YOUR_KEY

Add Accounts

# Bluesky (default)
python -m socials_daily add bsky.app

# Instagram
python -m socials_daily add natgeo --platform instagram

# With custom limit
python -m socials_daily add atmos.bsky.social --platform bluesky --limit 20

# Set platform backend
python -m socials_daily add natgeo --platform instagram --backend hikerapi

Configuration

accounts.json

Accounts are grouped by platform. Each account can have a custom limit:

{
  "bluesky": {
    "accounts": [
      {"handle": "bsky.app"},
      {"handle": "atmos.bsky.social", "limit": 20}
    ]
  },
  "instagram": {
    "accounts": [
      {"handle": "natgeo"}
    ]
  }
}

Each platform can override the scraper backend:

{
  "instagram": {
    "backend": "hikerapi",
    "accounts": [
      {"handle": "natgeo"}
    ]
  }
}

Backend resolution (highest to lowest priority):

  1. CLI --backend flag (overrides everything)
  2. Platform backend in accounts.json
  3. Default mapping (instagram → instaloader, bluesky → bluesky, etc.)

API Keys

API keys are stored in .socials_daily.config.json (gitignored). Keys are resolved in order:

  1. CLI --api-key flag
  2. .socials_daily.config.json
  3. Environment variables (HIKERAPI_TOKEN, XPOZ_API_KEY)

Pipeline Config (pipelines.json)

Control which transformers run on posts before output. Create pipelines.json in your project root:

{
  "pipelines": {
    "default": {
      "transformers": ["filter_no_caption", "html_escape"],
      "output": ["markdown", "json"]
    }
  }
}

Available transformers:

Transformer Description
filter_no_caption Removes posts with empty or whitespace-only captions
html_escape Escapes HTML entities in captions for safe rendering

Custom transformers — Install pip packages that register under socials_daily.transformers entry points, or add .py files to src/socials_daily/transformers/ (auto-discovered).

Transformers

Transformers process posts between scraping and output. Each transformer receives list[Post] and returns list[Post]. They can filter, enrich, or format posts.

Create a custom transformer:

from socials_daily.transformers.base import Post, Transformer, transformer

@transformer("my_transformer")
class MyTransformer(Transformer):
    name = "my_transformer"

    def transform(self, posts: list[Post]) -> list[Post]:
        # Filter, enrich, or modify posts
        return [p for p in posts if p.caption]

Register it in pipelines.json and it auto-discovers on import.

Backends

Backend Cost Setup Best For
bluesky Free None Public Bluesky accounts
instaloader Free None 1-5 Instagram accounts, low volume
reddit Free None Subreddit posts
rss Free None Any RSS/Atom feed
youtube Free pip install "socials-daily[youtube]" YouTube channel videos
hikerapi ~$0.0006/request API key Reliable, high volume
xpoz Free tier available API key Pre-indexed data, multi-platform

Bluesky

Uses Bluesky's public AT Protocol API. No authentication required.

python -m socials_daily scrape --backend bluesky

Instaloader

Free, open-source Instagram scraper. Rate-limited by Instagram.

HikerAPI

REST API with 100+ endpoints. No blocks, no rate limits.

export HIKERAPI_TOKEN=your-key
python -m socials_daily scrape --backend hikerapi

Xpoz

Pre-indexed social data API. Supports Instagram, Twitter, TikTok, Reddit.

export XPOZ_API_KEY=your-key
python -m socials_daily scrape --backend xpoz

YouTube

Fetches recent videos from YouTube channels. Requires optional yt-dlp dependency.

# Install YouTube support
pip install "socials-daily[youtube]"

# Add a channel (handle or name)
python -m socials_daily add mkbhd --platform youtube

# Scrape
python -m socials_daily scrape

Reddit

Fetches recent posts from public subreddits via Reddit's JSON API. No authentication required.

# Add a subreddit
python -m socials_daily add programming --platform reddit

# Scrape
python -m socials_daily scrape

RSS

Scrapes any RSS/Atom feed. The handle field holds the feed URL.

# Add an RSS feed
python -m socials_daily add https://www.reddit.com/r/programming/.rss --platform rss

# Scrape
python -m socials_daily scrape

Development

Setup

uv sync

Optional backends:

uv sync -E hikerapi -E xpoz -E youtube

Project Structure

accounts.json         # Accounts grouped by platform (with optional backend config)
pipelines.json        # Transformer pipeline config (optional)
src/socials_daily/    # Source code
├── __main__.py       # Entry point
├── providers/        # Third-party service providers (require API keys)
│   ├── hikerapi.py
│   └── xpoz.py
├── scrapers/         # Direct scraping (no third-party services)
│   ├── base.py       # Abstract interface
│   ├── bluesky.py
│   ├── instaloader.py
│   ├── reddit.py
│   ├── rss.py
│   └── youtube.py
└── transformers/     # Post-processing transformers
    ├── base.py       # Transformer protocol + decorator
    ├── filter_no_caption.py
    └── html_escape.py
output/               # Generated daily summaries
pyproject.toml        # Project config (uv)

Architecture

See ARCHITECTURE.md for a detailed breakdown of the scraper layer, config resolution, deduplication system, and data flow.

License

MIT — Copyright 2026 Bartlomiej Cieszkowski

Metadata

Release files for socials-daily 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for socials-daily 0.3.0
File Size Uploaded
socials_daily-0.3.0.tar.gz 16.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for socials-daily 0.3.0
File Interpreter ABI Platform
socials_daily-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 43.5 kB

Release files / socials_daily-0.3.0.tar.gz

Download URL socials_daily-0.3.0.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
73a17ab0998f39871fcda3c1da6c8765eaae84200f7bcc3304f3fc621389f6b6
BLAKE2b-256 checksum
How to use checksums
f6c0d59fce0d6f60c3cfe8d961a71b0f39630d2f438725f03e19b42d54a7c937
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / socials_daily-0.3.0-py3-none-any.whl

Download URL socials_daily-0.3.0-py3-none-any.whl
Size 26.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7456972510a49f561e6f05a7c1e4241d74a2c9c815960ac39d4ffc51c28525b6
BLAKE2b-256 checksum
How to use checksums
f4e2f599226ecfa91288e2037b2825582ac475c90817879974ef6882c7c5d439
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page