feat: add Lobste.rs, Instagram, and Facebook adapters#199
Merged
Conversation
…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.
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New Commands
Lobste.rs (Public API, no browser needed)
opencli lobsters hotopencli lobsters newestopencli lobsters activeopencli lobsters tag --tag rustInstagram (Browser mode, requires login)
opencli instagram profile --username nasaopencli instagram search --query nasaopencli instagram user --username nasaopencli instagram followers --username nasaopencli instagram following --username nasaopencli instagram savedopencli instagram exploreFacebook (Browser mode, requires login)
opencli facebook profile --username zuckopencli facebook notificationsopencli facebook feedopencli facebook search --query OpenAITechnical Notes
/api/v1/...) withX-IG-App-IDheader and cookie auth[role="article"],[role="listitem"]semantic selectorsTest plan
--format jsonoutput verified--limitparameter works across all commands