Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add Lobste.rs, Instagram, and Facebook adapters#199

Merged
jackwener merged 2 commits into
jackwener:mainfrom
0xsline:feat/lobsters-adapter
Mar 21, 2026
Merged

feat: add Lobste.rs, Instagram, and Facebook adapters#199
jackwener merged 2 commits into
jackwener:mainfrom
0xsline:feat/lobsters-adapter

Conversation

@0xsline
Copy link
Copy Markdown
Contributor

@0xsline 0xsline commented Mar 21, 2026

Summary

  • Lobste.rs — 4 public API commands (no auth needed)
  • Instagram — 7 browser-mode commands (internal REST API with cookie auth)
  • Facebook — 4 browser-mode commands (DOM scraping via role attributes)

New Commands

Lobste.rs (Public API, no browser needed)

Command Description
opencli lobsters hot Hottest stories
opencli lobsters newest Latest stories
opencli lobsters active Most active discussions
opencli lobsters tag --tag rust Stories by tag

Instagram (Browser mode, requires login)

Command Description
opencli instagram profile --username nasa User profile info
opencli instagram search --query nasa Search users
opencli instagram user --username nasa User's recent posts
opencli instagram followers --username nasa User's followers
opencli instagram following --username nasa User's following
opencli instagram saved Your saved posts
opencli instagram explore Discover trending posts

Facebook (Browser mode, requires login)

Command Description
opencli facebook profile --username zuck User/page profile
opencli facebook notifications Recent notifications
opencli facebook feed News feed posts
opencli facebook search --query OpenAI Search people/pages/posts

Technical Notes

  • Instagram adapters use stable internal API endpoints (/api/v1/...) with X-IG-App-ID header and cookie auth
  • Facebook adapters use DOM scraping via [role="article"], [role="listitem"] semantic selectors
  • All adapters require Chrome to be logged in to the respective site
  • Lobste.rs adapters use the public JSON API, no authentication needed

Test plan

  • All 15 new commands tested with live data
  • --format json output verified
  • --limit parameter works across all commands
  • All 258 existing unit tests pass (zero regression)

0xsline added 2 commits March 21, 2026 20:06
…ommands

Add public API adapter for Lobste.rs (lobste.rs), a developer-focused
link aggregation community. All commands use the public JSON API and
require no authentication or browser.

Commands:
- hot: hottest stories
- newest: latest stories
- active: most active discussions
- tag: filter stories by tag (e.g. rust, security, programming)
Instagram (7 commands, browser mode - internal REST API):
- profile: user profile info (followers, following, posts, bio)
- search: search users
- user: recent posts from a user
- followers: list user's followers
- following: list user's following
- saved: saved posts
- explore: discover trending posts

Facebook (4 commands, browser mode - DOM scraping):
- profile: user/page profile info
- notifications: recent notifications
- feed: news feed posts
- search: search people, pages, posts

All commands require Chrome to be logged in to the respective site.
Instagram uses stable internal API endpoints with cookie auth.
Facebook uses DOM scraping via role attributes and semantic selectors.
@0xsline 0xsline changed the title feat(lobsters): add Lobste.rs adapter feat: add Lobste.rs, Instagram, and Facebook adapters Mar 21, 2026
@jackwener jackwener merged commit ce484c2 into jackwener:main Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants