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

# 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)

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)
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
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.2.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.2.0
File Size Uploaded
socials_daily-0.2.0.tar.gz 13.5 kB Details

Built distribution (wheel)

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

Total release size: 34.6 kB

Release files / socials_daily-0.2.0.tar.gz

Download URL socials_daily-0.2.0.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
22fbcd6b183f28e8a05aa04d52e35f199b3d6a1575c9f8102b7789a492d286e3
BLAKE2b-256 checksum
How to use checksums
534423f9ccbca54a8830ee6afdaa9e99ccf2d51929fad2883af2eda2dc49c717
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 7, 2026.

Transparency log

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

Download URL socials_daily-0.2.0-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c450b28c6c5f31754c20c357403f2f849f4c760a6e7f9944a0d5884cd8b9f54f
BLAKE2b-256 checksum
How to use checksums
e6cf4b2b3767ad66bc83b54cef17d5bdad6ff3d148ff549d5fa04cb2253865b5
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 7, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.0 This release

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