@jackwener/opencli 1.6.9 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +128 -59
- package/README.zh-CN.md +134 -78
- package/dist/clis/_shared/common.d.ts +3 -0
- package/dist/clis/_shared/common.js +22 -0
- package/dist/clis/bilibili/hot.js +35 -0
- package/dist/clis/bluesky/feeds.d.ts +1 -0
- package/dist/clis/bluesky/feeds.js +27 -0
- package/dist/clis/bluesky/followers.d.ts +1 -0
- package/dist/clis/bluesky/followers.js +27 -0
- package/dist/clis/bluesky/following.d.ts +1 -0
- package/dist/clis/bluesky/following.js +27 -0
- package/dist/clis/bluesky/profile.d.ts +1 -0
- package/dist/clis/bluesky/profile.js +29 -0
- package/dist/clis/bluesky/search.d.ts +1 -0
- package/dist/clis/bluesky/search.js +28 -0
- package/dist/clis/bluesky/starter-packs.d.ts +1 -0
- package/dist/clis/bluesky/starter-packs.js +28 -0
- package/dist/clis/bluesky/thread.d.ts +1 -0
- package/dist/clis/bluesky/thread.js +30 -0
- package/dist/clis/bluesky/trending.d.ts +1 -0
- package/dist/clis/bluesky/trending.js +19 -0
- package/dist/clis/bluesky/user.d.ts +1 -0
- package/dist/clis/bluesky/user.js +33 -0
- package/dist/clis/cnki/search.d.ts +1 -0
- package/dist/clis/cnki/search.js +60 -0
- package/dist/clis/cnki/search.test.d.ts +1 -0
- package/dist/clis/cnki/search.test.js +18 -0
- package/dist/clis/devto/tag.d.ts +1 -0
- package/dist/clis/devto/tag.js +32 -0
- package/dist/clis/devto/top.d.ts +1 -0
- package/dist/clis/devto/top.js +26 -0
- package/dist/clis/devto/user.d.ts +1 -0
- package/dist/clis/devto/user.js +31 -0
- package/dist/clis/dictionary/examples.d.ts +1 -0
- package/dist/clis/dictionary/examples.js +27 -0
- package/dist/clis/dictionary/search.d.ts +1 -0
- package/dist/clis/dictionary/search.js +29 -0
- package/dist/clis/dictionary/synonyms.d.ts +1 -0
- package/dist/clis/dictionary/synonyms.js +27 -0
- package/dist/clis/douban/subject.d.ts +1 -0
- package/dist/clis/douban/subject.js +118 -0
- package/dist/clis/douban/top250.d.ts +1 -0
- package/dist/clis/douban/top250.js +67 -0
- package/dist/clis/facebook/add-friend.d.ts +1 -0
- package/dist/clis/facebook/add-friend.js +43 -0
- package/dist/clis/facebook/events.d.ts +1 -0
- package/dist/clis/facebook/events.js +40 -0
- package/dist/clis/facebook/feed.d.ts +1 -0
- package/dist/clis/facebook/feed.js +59 -0
- package/dist/clis/facebook/friends.d.ts +1 -0
- package/dist/clis/facebook/friends.js +38 -0
- package/dist/clis/facebook/groups.d.ts +1 -0
- package/dist/clis/facebook/groups.js +46 -0
- package/dist/clis/facebook/join-group.d.ts +1 -0
- package/dist/clis/facebook/join-group.js +44 -0
- package/dist/clis/facebook/memories.d.ts +1 -0
- package/dist/clis/facebook/memories.js +35 -0
- package/dist/clis/facebook/notifications.d.ts +1 -0
- package/dist/clis/facebook/notifications.js +36 -0
- package/dist/clis/facebook/profile.d.ts +1 -0
- package/dist/clis/facebook/profile.js +37 -0
- package/dist/clis/facebook/search.d.ts +1 -0
- package/dist/clis/facebook/search.js +38 -0
- package/dist/clis/facebook/search.test.d.ts +1 -1
- package/dist/clis/facebook/search.test.js +6 -9
- package/dist/clis/gitee/index.d.ts +3 -0
- package/dist/clis/gitee/index.js +3 -0
- package/dist/clis/gitee/search.d.ts +1 -0
- package/dist/clis/gitee/search.js +136 -0
- package/dist/clis/gitee/trending.d.ts +1 -0
- package/dist/clis/gitee/trending.js +567 -0
- package/dist/clis/gitee/user.d.ts +1 -0
- package/dist/clis/gitee/user.js +199 -0
- package/dist/clis/gitee/user.test.d.ts +1 -0
- package/dist/clis/gitee/user.test.js +63 -0
- package/dist/clis/hackernews/ask.d.ts +1 -0
- package/dist/clis/hackernews/ask.js +29 -0
- package/dist/clis/hackernews/best.d.ts +1 -0
- package/dist/clis/hackernews/best.js +29 -0
- package/dist/clis/hackernews/jobs.d.ts +1 -0
- package/dist/clis/hackernews/jobs.js +27 -0
- package/dist/clis/hackernews/new.d.ts +1 -0
- package/dist/clis/hackernews/new.js +29 -0
- package/dist/clis/hackernews/search.d.ts +1 -0
- package/dist/clis/hackernews/search.js +36 -0
- package/dist/clis/hackernews/show.d.ts +1 -0
- package/dist/clis/hackernews/show.js +29 -0
- package/dist/clis/hackernews/top.d.ts +1 -0
- package/dist/clis/hackernews/top.js +29 -0
- package/dist/clis/hackernews/user.d.ts +1 -0
- package/dist/clis/hackernews/user.js +22 -0
- package/dist/clis/hupu/hot.d.ts +1 -0
- package/dist/clis/hupu/hot.js +40 -0
- package/dist/clis/instagram/comment.d.ts +1 -0
- package/dist/clis/instagram/comment.js +47 -0
- package/dist/clis/instagram/explore.d.ts +1 -0
- package/dist/clis/instagram/explore.js +41 -0
- package/dist/clis/instagram/follow.d.ts +1 -0
- package/dist/clis/instagram/follow.js +43 -0
- package/dist/clis/instagram/followers.d.ts +1 -0
- package/dist/clis/instagram/followers.js +45 -0
- package/dist/clis/instagram/following.d.ts +1 -0
- package/dist/clis/instagram/following.js +45 -0
- package/dist/clis/instagram/like.d.ts +1 -0
- package/dist/clis/instagram/like.js +45 -0
- package/dist/clis/instagram/profile.d.ts +1 -0
- package/dist/clis/instagram/profile.js +39 -0
- package/dist/clis/instagram/save.d.ts +1 -0
- package/dist/clis/instagram/save.js +45 -0
- package/dist/clis/instagram/saved.d.ts +1 -0
- package/dist/clis/instagram/saved.js +38 -0
- package/dist/clis/instagram/search.d.ts +1 -0
- package/dist/clis/instagram/search.js +38 -0
- package/dist/clis/instagram/unfollow.d.ts +1 -0
- package/dist/clis/instagram/unfollow.js +40 -0
- package/dist/clis/instagram/unlike.d.ts +1 -0
- package/dist/clis/instagram/unlike.js +45 -0
- package/dist/clis/instagram/unsave.d.ts +1 -0
- package/dist/clis/instagram/unsave.js +45 -0
- package/dist/clis/instagram/user.d.ts +1 -0
- package/dist/clis/instagram/user.js +48 -0
- package/dist/clis/jd/add-cart.d.ts +1 -0
- package/dist/clis/jd/add-cart.js +71 -0
- package/dist/clis/jd/cart.d.ts +1 -0
- package/dist/clis/jd/cart.js +79 -0
- package/dist/clis/jd/commands.test.d.ts +5 -0
- package/dist/clis/jd/commands.test.js +64 -0
- package/dist/clis/jd/detail.d.ts +1 -0
- package/dist/clis/jd/detail.js +62 -0
- package/dist/clis/jd/reviews.d.ts +1 -0
- package/dist/clis/jd/reviews.js +54 -0
- package/dist/clis/jd/search.d.ts +1 -0
- package/dist/clis/jd/search.js +65 -0
- package/dist/clis/jianyu/detail.d.ts +1 -0
- package/dist/clis/jianyu/detail.js +20 -0
- package/dist/clis/jianyu/search.d.ts +41 -4
- package/dist/clis/jianyu/search.js +458 -96
- package/dist/clis/jianyu/search.test.js +105 -0
- package/dist/clis/jianyu/shared/china-bid-search.d.ts +12 -0
- package/dist/clis/jianyu/shared/china-bid-search.js +165 -0
- package/dist/clis/jianyu/shared/procurement-contract.d.ts +68 -0
- package/dist/clis/jianyu/shared/procurement-contract.js +324 -0
- package/dist/clis/jianyu/shared/procurement-contract.test.d.ts +1 -0
- package/dist/clis/jianyu/shared/procurement-contract.test.js +72 -0
- package/dist/clis/jianyu/shared/procurement-detail.d.ts +6 -0
- package/dist/clis/jianyu/shared/procurement-detail.js +92 -0
- package/dist/clis/jianyu/shared/procurement-detail.test.d.ts +1 -0
- package/dist/clis/jianyu/shared/procurement-detail.test.js +72 -0
- package/dist/clis/jike/post.d.ts +1 -0
- package/dist/clis/jike/post.js +61 -0
- package/dist/clis/jike/topic.d.ts +1 -0
- package/dist/clis/jike/topic.js +51 -0
- package/dist/clis/jike/user.d.ts +1 -0
- package/dist/clis/jike/user.js +50 -0
- package/dist/clis/jimeng/generate.d.ts +1 -0
- package/dist/clis/jimeng/generate.js +83 -0
- package/dist/clis/jimeng/history.d.ts +1 -0
- package/dist/clis/jimeng/history.js +47 -0
- package/dist/clis/jimeng/new.d.ts +1 -0
- package/dist/clis/jimeng/new.js +43 -0
- package/dist/clis/jimeng/workspaces.d.ts +1 -0
- package/dist/clis/jimeng/workspaces.js +41 -0
- package/dist/clis/linux-do/categories.d.ts +1 -0
- package/dist/clis/linux-do/categories.js +65 -0
- package/dist/clis/linux-do/search.d.ts +1 -0
- package/dist/clis/linux-do/search.js +41 -0
- package/dist/clis/linux-do/tags.d.ts +1 -0
- package/dist/clis/linux-do/tags.js +39 -0
- package/dist/clis/linux-do/topic-content.test.js +5 -5
- package/dist/clis/linux-do/topic.d.ts +1 -0
- package/dist/clis/linux-do/topic.js +56 -0
- package/dist/clis/linux-do/user-posts.d.ts +1 -0
- package/dist/clis/linux-do/user-posts.js +61 -0
- package/dist/clis/linux-do/user-topics.d.ts +1 -0
- package/dist/clis/linux-do/user-topics.js +48 -0
- package/dist/clis/lobsters/active.d.ts +1 -0
- package/dist/clis/lobsters/active.js +26 -0
- package/dist/clis/lobsters/hot.d.ts +1 -0
- package/dist/clis/lobsters/hot.js +26 -0
- package/dist/clis/lobsters/newest.d.ts +1 -0
- package/dist/clis/lobsters/newest.js +26 -0
- package/dist/clis/lobsters/tag.d.ts +1 -0
- package/dist/clis/lobsters/tag.js +32 -0
- package/dist/clis/pixiv/detail.d.ts +1 -0
- package/dist/clis/pixiv/detail.js +58 -0
- package/dist/clis/pixiv/ranking.d.ts +1 -0
- package/dist/clis/pixiv/ranking.js +59 -0
- package/dist/clis/pixiv/user.d.ts +1 -0
- package/dist/clis/pixiv/user.js +52 -0
- package/dist/clis/reddit/frontpage.d.ts +1 -0
- package/dist/clis/reddit/frontpage.js +31 -0
- package/dist/clis/reddit/hot.d.ts +1 -0
- package/dist/clis/reddit/hot.js +45 -0
- package/dist/clis/reddit/popular.d.ts +1 -0
- package/dist/clis/reddit/popular.js +41 -0
- package/dist/clis/reddit/search.d.ts +1 -0
- package/dist/clis/reddit/search.js +65 -0
- package/dist/clis/reddit/subreddit.d.ts +1 -0
- package/dist/clis/reddit/subreddit.js +52 -0
- package/dist/clis/reddit/user-comments.d.ts +1 -0
- package/dist/clis/reddit/user-comments.js +44 -0
- package/dist/clis/reddit/user-posts.d.ts +1 -0
- package/dist/clis/reddit/user-posts.js +42 -0
- package/dist/clis/reddit/user.d.ts +1 -0
- package/dist/clis/reddit/user.js +37 -0
- package/dist/clis/stackoverflow/bounties.d.ts +1 -0
- package/dist/clis/stackoverflow/bounties.js +27 -0
- package/dist/clis/stackoverflow/hot.d.ts +1 -0
- package/dist/clis/stackoverflow/hot.js +24 -0
- package/dist/clis/stackoverflow/search.d.ts +1 -0
- package/dist/clis/stackoverflow/search.js +27 -0
- package/dist/clis/stackoverflow/unanswered.d.ts +1 -0
- package/dist/clis/stackoverflow/unanswered.js +26 -0
- package/dist/clis/steam/top-sellers.d.ts +1 -0
- package/dist/clis/steam/top-sellers.js +25 -0
- package/dist/clis/taobao/add-cart.d.ts +1 -0
- package/dist/clis/taobao/add-cart.js +149 -0
- package/dist/clis/taobao/cart.d.ts +1 -0
- package/dist/clis/taobao/cart.js +95 -0
- package/dist/clis/taobao/commands.test.d.ts +5 -0
- package/dist/clis/taobao/commands.test.js +64 -0
- package/dist/clis/taobao/detail.d.ts +1 -0
- package/dist/clis/taobao/detail.js +70 -0
- package/dist/clis/taobao/reviews.d.ts +1 -0
- package/dist/clis/taobao/reviews.js +76 -0
- package/dist/clis/taobao/search.d.ts +1 -0
- package/dist/clis/taobao/search.js +96 -0
- package/dist/clis/tiktok/comment.d.ts +1 -0
- package/dist/clis/tiktok/comment.js +57 -0
- package/dist/clis/tiktok/explore.d.ts +1 -0
- package/dist/clis/tiktok/explore.js +35 -0
- package/dist/clis/tiktok/follow.d.ts +1 -0
- package/dist/clis/tiktok/follow.js +39 -0
- package/dist/clis/tiktok/following.d.ts +1 -0
- package/dist/clis/tiktok/following.js +42 -0
- package/dist/clis/tiktok/friends.d.ts +1 -0
- package/dist/clis/tiktok/friends.js +43 -0
- package/dist/clis/tiktok/like.d.ts +1 -0
- package/dist/clis/tiktok/like.js +33 -0
- package/dist/clis/tiktok/live.d.ts +1 -0
- package/dist/clis/tiktok/live.js +47 -0
- package/dist/clis/tiktok/notifications.d.ts +1 -0
- package/dist/clis/tiktok/notifications.js +49 -0
- package/dist/clis/tiktok/profile.d.ts +1 -0
- package/dist/clis/tiktok/profile.js +54 -0
- package/dist/clis/tiktok/save.d.ts +1 -0
- package/dist/clis/tiktok/save.js +29 -0
- package/dist/clis/tiktok/search.d.ts +1 -0
- package/dist/clis/tiktok/search.js +39 -0
- package/dist/clis/tiktok/unfollow.d.ts +1 -0
- package/dist/clis/tiktok/unfollow.js +44 -0
- package/dist/clis/tiktok/unlike.d.ts +1 -0
- package/dist/clis/tiktok/unlike.js +33 -0
- package/dist/clis/tiktok/unsave.d.ts +1 -0
- package/dist/clis/tiktok/unsave.js +31 -0
- package/dist/clis/tiktok/user.d.ts +1 -0
- package/dist/clis/tiktok/user.js +41 -0
- package/dist/clis/v2ex/hot.d.ts +1 -0
- package/dist/clis/v2ex/hot.js +25 -0
- package/dist/clis/v2ex/latest.d.ts +1 -0
- package/dist/clis/v2ex/latest.js +25 -0
- package/dist/clis/v2ex/member.d.ts +1 -0
- package/dist/clis/v2ex/member.js +27 -0
- package/dist/clis/v2ex/node.d.ts +1 -0
- package/dist/clis/v2ex/node.js +38 -0
- package/dist/clis/v2ex/nodes.d.ts +1 -0
- package/dist/clis/v2ex/nodes.js +25 -0
- package/dist/clis/v2ex/replies.d.ts +1 -0
- package/dist/clis/v2ex/replies.js +26 -0
- package/dist/clis/v2ex/topic.d.ts +1 -0
- package/dist/clis/v2ex/topic.js +30 -0
- package/dist/clis/v2ex/user.d.ts +1 -0
- package/dist/clis/v2ex/user.js +33 -0
- package/dist/clis/xiaoe/catalog.d.ts +1 -0
- package/dist/clis/xiaoe/catalog.js +161 -0
- package/dist/clis/xiaoe/content.d.ts +1 -0
- package/dist/clis/xiaoe/content.js +39 -0
- package/dist/clis/xiaoe/courses.d.ts +1 -0
- package/dist/clis/xiaoe/courses.js +69 -0
- package/dist/clis/xiaoe/detail.d.ts +1 -0
- package/dist/clis/xiaoe/detail.js +35 -0
- package/dist/clis/xiaoe/play-url.d.ts +1 -0
- package/dist/clis/xiaoe/play-url.js +120 -0
- package/dist/clis/xiaohongshu/feed.d.ts +1 -0
- package/dist/clis/xiaohongshu/feed.js +32 -0
- package/dist/clis/xiaohongshu/notifications.d.ts +1 -0
- package/dist/clis/xiaohongshu/notifications.js +38 -0
- package/dist/clis/xueqiu/earnings-date.d.ts +1 -0
- package/dist/clis/xueqiu/earnings-date.js +61 -0
- package/dist/clis/xueqiu/feed.d.ts +1 -0
- package/dist/clis/xueqiu/feed.js +48 -0
- package/dist/clis/xueqiu/groups.d.ts +1 -0
- package/dist/clis/xueqiu/groups.js +25 -0
- package/dist/clis/xueqiu/hot-stock.d.ts +1 -0
- package/dist/clis/xueqiu/hot-stock.js +44 -0
- package/dist/clis/xueqiu/hot.d.ts +1 -0
- package/dist/clis/xueqiu/hot.js +44 -0
- package/dist/clis/xueqiu/kline.d.ts +1 -0
- package/dist/clis/xueqiu/kline.js +64 -0
- package/dist/clis/xueqiu/search.d.ts +1 -0
- package/dist/clis/xueqiu/search.js +49 -0
- package/dist/clis/xueqiu/stock.d.ts +1 -0
- package/dist/clis/xueqiu/stock.js +72 -0
- package/dist/clis/xueqiu/watchlist.d.ts +1 -0
- package/dist/clis/xueqiu/watchlist.js +45 -0
- package/dist/clis/zhihu/hot.d.ts +1 -0
- package/dist/clis/zhihu/hot.js +43 -0
- package/dist/clis/zhihu/search.d.ts +1 -0
- package/dist/clis/zhihu/search.js +52 -0
- package/dist/src/browser/bridge.js +1 -1
- package/dist/src/browser/daemon-client.d.ts +16 -4
- package/dist/src/browser/daemon-client.js +33 -15
- package/dist/src/browser/daemon-client.test.js +0 -3
- package/dist/src/browser/dom-helpers.test.js +3 -2
- package/dist/src/browser/errors.d.ts +26 -1
- package/dist/src/browser/errors.js +40 -7
- package/dist/src/browser/errors.test.d.ts +1 -0
- package/dist/src/browser/errors.test.js +51 -0
- package/dist/src/browser/page.d.ts +9 -8
- package/dist/src/browser/page.js +33 -31
- package/dist/src/browser.test.js +25 -6
- package/dist/src/build-manifest.d.ts +5 -11
- package/dist/src/build-manifest.js +6 -75
- package/dist/src/build-manifest.test.js +1 -39
- package/dist/src/cascade.js +3 -2
- package/dist/src/cli.d.ts +3 -3
- package/dist/src/cli.js +71 -71
- package/dist/src/cli.test.js +20 -15
- package/dist/src/clis/binance/asks.d.ts +1 -0
- package/dist/src/clis/binance/asks.js +20 -0
- package/dist/src/clis/binance/commands.test.d.ts +3 -1
- package/dist/src/clis/binance/commands.test.js +10 -6
- package/dist/src/clis/binance/depth.d.ts +1 -0
- package/dist/src/clis/binance/depth.js +20 -0
- package/dist/src/clis/binance/gainers.d.ts +1 -0
- package/dist/src/clis/binance/gainers.js +21 -0
- package/dist/src/clis/binance/klines.d.ts +1 -0
- package/dist/src/clis/binance/klines.js +20 -0
- package/dist/src/clis/binance/losers.d.ts +1 -0
- package/dist/src/clis/binance/losers.js +21 -0
- package/dist/src/clis/binance/pairs.d.ts +1 -0
- package/dist/src/clis/binance/pairs.js +20 -0
- package/dist/src/clis/binance/price.d.ts +1 -0
- package/dist/src/clis/binance/price.js +17 -0
- package/dist/src/clis/binance/prices.d.ts +1 -0
- package/dist/src/clis/binance/prices.js +18 -0
- package/dist/src/clis/binance/ticker.d.ts +1 -0
- package/dist/src/clis/binance/ticker.js +20 -0
- package/dist/src/clis/binance/top.d.ts +1 -0
- package/dist/src/clis/binance/top.js +20 -0
- package/dist/src/clis/binance/trades.d.ts +1 -0
- package/dist/src/clis/binance/trades.js +19 -0
- package/dist/src/commands/daemon.d.ts +2 -6
- package/dist/src/commands/daemon.js +2 -58
- package/dist/src/commands/daemon.test.js +24 -120
- package/dist/src/completion-fast.d.ts +25 -0
- package/dist/src/completion-fast.js +140 -0
- package/dist/src/completion.d.ts +1 -0
- package/dist/src/completion.js +1 -0
- package/dist/src/constants.d.ts +0 -2
- package/dist/src/constants.js +0 -2
- package/dist/src/daemon.d.ts +1 -1
- package/dist/src/daemon.js +2 -15
- package/dist/src/diagnostic.test.js +2 -2
- package/dist/src/discovery.d.ts +3 -3
- package/dist/src/discovery.js +34 -97
- package/dist/src/download/index.d.ts +1 -1
- package/dist/src/engine.test.js +4 -19
- package/dist/src/execution.js +5 -1
- package/dist/src/generate-verified.d.ts +105 -0
- package/dist/src/generate-verified.js +696 -0
- package/dist/src/generate-verified.test.d.ts +1 -0
- package/dist/src/generate-verified.test.js +925 -0
- package/dist/src/generate.d.ts +9 -1
- package/dist/src/generate.js +2 -2
- package/dist/src/main.js +65 -12
- package/dist/src/pipeline/steps/download.d.ts +1 -17
- package/dist/src/pipeline/steps/download.js +20 -31
- package/dist/src/pipeline/steps/intercept.d.ts +1 -1
- package/dist/src/pipeline/steps/intercept.js +1 -1
- package/dist/src/pipeline/steps/tap.d.ts +1 -1
- package/dist/src/pipeline/steps/tap.js +1 -1
- package/dist/src/plugin-scaffold.d.ts +2 -2
- package/dist/src/plugin-scaffold.js +24 -21
- package/dist/src/plugin-scaffold.test.js +1 -1
- package/dist/src/plugin.d.ts +1 -1
- package/dist/src/plugin.js +4 -6
- package/dist/src/plugin.test.js +31 -31
- package/dist/src/record.js +26 -25
- package/dist/src/runtime-detect.js +3 -7
- package/dist/src/scripts/framework.d.ts +3 -0
- package/dist/src/scripts/framework.js +8 -4
- package/dist/src/scripts/store.d.ts +5 -1
- package/dist/src/scripts/store.js +5 -1
- package/dist/src/skill-generate.d.ts +30 -0
- package/dist/src/skill-generate.js +75 -0
- package/dist/src/skill-generate.test.d.ts +1 -0
- package/dist/src/skill-generate.test.js +173 -0
- package/dist/src/synthesize.d.ts +1 -1
- package/dist/src/synthesize.js +7 -8
- package/dist/src/types.d.ts +3 -1
- package/package.json +4 -3
- package/dist/clis/bilibili/hot.yaml +0 -38
- package/dist/clis/bluesky/feeds.yaml +0 -29
- package/dist/clis/bluesky/followers.yaml +0 -33
- package/dist/clis/bluesky/following.yaml +0 -33
- package/dist/clis/bluesky/profile.yaml +0 -27
- package/dist/clis/bluesky/search.yaml +0 -34
- package/dist/clis/bluesky/starter-packs.yaml +0 -34
- package/dist/clis/bluesky/thread.yaml +0 -32
- package/dist/clis/bluesky/trending.yaml +0 -27
- package/dist/clis/bluesky/user.yaml +0 -34
- package/dist/clis/devto/tag.yaml +0 -34
- package/dist/clis/devto/top.yaml +0 -29
- package/dist/clis/devto/user.yaml +0 -33
- package/dist/clis/dictionary/examples.yaml +0 -25
- package/dist/clis/dictionary/search.yaml +0 -27
- package/dist/clis/dictionary/synonyms.yaml +0 -25
- package/dist/clis/douban/subject.yaml +0 -107
- package/dist/clis/douban/top250.yaml +0 -70
- package/dist/clis/facebook/add-friend.yaml +0 -43
- package/dist/clis/facebook/events.yaml +0 -44
- package/dist/clis/facebook/feed.yaml +0 -63
- package/dist/clis/facebook/friends.yaml +0 -42
- package/dist/clis/facebook/groups.yaml +0 -50
- package/dist/clis/facebook/join-group.yaml +0 -44
- package/dist/clis/facebook/memories.yaml +0 -39
- package/dist/clis/facebook/notifications.yaml +0 -40
- package/dist/clis/facebook/profile.yaml +0 -37
- package/dist/clis/facebook/search.yaml +0 -47
- package/dist/clis/hackernews/ask.yaml +0 -38
- package/dist/clis/hackernews/best.yaml +0 -38
- package/dist/clis/hackernews/jobs.yaml +0 -36
- package/dist/clis/hackernews/new.yaml +0 -38
- package/dist/clis/hackernews/search.yaml +0 -44
- package/dist/clis/hackernews/show.yaml +0 -38
- package/dist/clis/hackernews/top.yaml +0 -38
- package/dist/clis/hackernews/user.yaml +0 -25
- package/dist/clis/hupu/hot.yaml +0 -43
- package/dist/clis/instagram/comment.yaml +0 -52
- package/dist/clis/instagram/explore.yaml +0 -43
- package/dist/clis/instagram/follow.yaml +0 -41
- package/dist/clis/instagram/followers.yaml +0 -51
- package/dist/clis/instagram/following.yaml +0 -51
- package/dist/clis/instagram/like.yaml +0 -46
- package/dist/clis/instagram/profile.yaml +0 -42
- package/dist/clis/instagram/save.yaml +0 -46
- package/dist/clis/instagram/saved.yaml +0 -40
- package/dist/clis/instagram/search.yaml +0 -44
- package/dist/clis/instagram/unfollow.yaml +0 -38
- package/dist/clis/instagram/unlike.yaml +0 -46
- package/dist/clis/instagram/unsave.yaml +0 -46
- package/dist/clis/instagram/user.yaml +0 -54
- package/dist/clis/jike/post.yaml +0 -59
- package/dist/clis/jike/topic.yaml +0 -53
- package/dist/clis/jike/user.yaml +0 -52
- package/dist/clis/jimeng/generate.yaml +0 -85
- package/dist/clis/jimeng/history.yaml +0 -46
- package/dist/clis/linux-do/categories.yaml +0 -70
- package/dist/clis/linux-do/search.yaml +0 -48
- package/dist/clis/linux-do/tags.yaml +0 -41
- package/dist/clis/linux-do/topic.yaml +0 -62
- package/dist/clis/linux-do/user-posts.yaml +0 -67
- package/dist/clis/linux-do/user-topics.yaml +0 -54
- package/dist/clis/lobsters/active.yaml +0 -29
- package/dist/clis/lobsters/hot.yaml +0 -29
- package/dist/clis/lobsters/newest.yaml +0 -29
- package/dist/clis/lobsters/tag.yaml +0 -34
- package/dist/clis/pixiv/detail.yaml +0 -49
- package/dist/clis/pixiv/ranking.yaml +0 -53
- package/dist/clis/pixiv/user.yaml +0 -46
- package/dist/clis/reddit/frontpage.yaml +0 -30
- package/dist/clis/reddit/hot.yaml +0 -47
- package/dist/clis/reddit/popular.yaml +0 -40
- package/dist/clis/reddit/search.yaml +0 -61
- package/dist/clis/reddit/subreddit.yaml +0 -50
- package/dist/clis/reddit/user-comments.yaml +0 -46
- package/dist/clis/reddit/user-posts.yaml +0 -44
- package/dist/clis/reddit/user.yaml +0 -40
- package/dist/clis/stackoverflow/bounties.yaml +0 -29
- package/dist/clis/stackoverflow/hot.yaml +0 -28
- package/dist/clis/stackoverflow/search.yaml +0 -33
- package/dist/clis/stackoverflow/unanswered.yaml +0 -28
- package/dist/clis/steam/top-sellers.yaml +0 -29
- package/dist/clis/tiktok/comment.yaml +0 -66
- package/dist/clis/tiktok/explore.yaml +0 -39
- package/dist/clis/tiktok/follow.yaml +0 -39
- package/dist/clis/tiktok/following.yaml +0 -46
- package/dist/clis/tiktok/friends.yaml +0 -47
- package/dist/clis/tiktok/like.yaml +0 -38
- package/dist/clis/tiktok/live.yaml +0 -51
- package/dist/clis/tiktok/notifications.yaml +0 -52
- package/dist/clis/tiktok/profile.yaml +0 -45
- package/dist/clis/tiktok/save.yaml +0 -34
- package/dist/clis/tiktok/search.yaml +0 -47
- package/dist/clis/tiktok/unfollow.yaml +0 -44
- package/dist/clis/tiktok/unlike.yaml +0 -38
- package/dist/clis/tiktok/unsave.yaml +0 -36
- package/dist/clis/tiktok/user.yaml +0 -44
- package/dist/clis/v2ex/hot.yaml +0 -28
- package/dist/clis/v2ex/latest.yaml +0 -28
- package/dist/clis/v2ex/member.yaml +0 -29
- package/dist/clis/v2ex/node.yaml +0 -34
- package/dist/clis/v2ex/nodes.yaml +0 -31
- package/dist/clis/v2ex/replies.yaml +0 -32
- package/dist/clis/v2ex/topic.yaml +0 -33
- package/dist/clis/v2ex/user.yaml +0 -34
- package/dist/clis/xiaoe/catalog.yaml +0 -129
- package/dist/clis/xiaoe/content.yaml +0 -43
- package/dist/clis/xiaoe/courses.yaml +0 -73
- package/dist/clis/xiaoe/detail.yaml +0 -39
- package/dist/clis/xiaoe/play-url.yaml +0 -124
- package/dist/clis/xiaohongshu/feed.yaml +0 -31
- package/dist/clis/xiaohongshu/notifications.yaml +0 -37
- package/dist/clis/xueqiu/earnings-date.yaml +0 -69
- package/dist/clis/xueqiu/feed.yaml +0 -53
- package/dist/clis/xueqiu/groups.yaml +0 -23
- package/dist/clis/xueqiu/hot-stock.yaml +0 -49
- package/dist/clis/xueqiu/hot.yaml +0 -46
- package/dist/clis/xueqiu/kline.yaml +0 -65
- package/dist/clis/xueqiu/search.yaml +0 -55
- package/dist/clis/xueqiu/stock.yaml +0 -69
- package/dist/clis/xueqiu/watchlist.yaml +0 -46
- package/dist/clis/zhihu/hot.yaml +0 -46
- package/dist/clis/zhihu/search.yaml +0 -59
- package/dist/src/daemon.test.js +0 -65
- package/dist/src/idle-manager.d.ts +0 -19
- package/dist/src/idle-manager.js +0 -54
- package/dist/src/yaml-schema.d.ts +0 -29
- package/dist/src/yaml-schema.js +0 -22
- /package/dist/{src/daemon.test.d.ts → clis/bilibili/hot.d.ts} +0 -0
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
site: instagram
|
|
2
|
-
name: like
|
|
3
|
-
description: Like an Instagram post
|
|
4
|
-
domain: www.instagram.com
|
|
5
|
-
|
|
6
|
-
args:
|
|
7
|
-
username:
|
|
8
|
-
type: str
|
|
9
|
-
required: true
|
|
10
|
-
positional: true
|
|
11
|
-
description: Username of the post author
|
|
12
|
-
index:
|
|
13
|
-
type: int
|
|
14
|
-
default: 1
|
|
15
|
-
description: Post index (1 = most recent)
|
|
16
|
-
|
|
17
|
-
pipeline:
|
|
18
|
-
- navigate: https://www.instagram.com
|
|
19
|
-
|
|
20
|
-
- evaluate: |
|
|
21
|
-
(async () => {
|
|
22
|
-
const username = ${{ args.username | json }};
|
|
23
|
-
const idx = ${{ args.index }} - 1;
|
|
24
|
-
const headers = { 'X-IG-App-ID': '936619743392459' };
|
|
25
|
-
const opts = { credentials: 'include', headers };
|
|
26
|
-
|
|
27
|
-
const r1 = await fetch('https://www.instagram.com/api/v1/users/web_profile_info/?username=' + encodeURIComponent(username), opts);
|
|
28
|
-
if (!r1.ok) throw new Error('User not found: ' + username);
|
|
29
|
-
const userId = (await r1.json())?.data?.user?.id;
|
|
30
|
-
|
|
31
|
-
const r2 = await fetch('https://www.instagram.com/api/v1/feed/user/' + userId + '/?count=' + (idx + 1), opts);
|
|
32
|
-
const posts = (await r2.json())?.items || [];
|
|
33
|
-
if (idx >= posts.length) throw new Error('Post index ' + (idx + 1) + ' not found, user has ' + posts.length + ' recent posts');
|
|
34
|
-
const pk = posts[idx].pk;
|
|
35
|
-
const caption = (posts[idx].caption?.text || '').substring(0, 60);
|
|
36
|
-
|
|
37
|
-
const csrf = document.cookie.match(/csrftoken=([^;]+)/)?.[1] || '';
|
|
38
|
-
const r3 = await fetch('https://www.instagram.com/api/v1/web/likes/' + pk + '/like/', {
|
|
39
|
-
method: 'POST', credentials: 'include',
|
|
40
|
-
headers: { ...headers, 'X-CSRFToken': csrf, 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
41
|
-
});
|
|
42
|
-
if (!r3.ok) throw new Error('Failed to like: HTTP ' + r3.status);
|
|
43
|
-
return [{ status: 'Liked', user: username, post: caption || '(post #' + (idx+1) + ')' }];
|
|
44
|
-
})()
|
|
45
|
-
|
|
46
|
-
columns: [status, user, post]
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
site: instagram
|
|
2
|
-
name: profile
|
|
3
|
-
description: Get Instagram user profile info
|
|
4
|
-
domain: www.instagram.com
|
|
5
|
-
|
|
6
|
-
args:
|
|
7
|
-
username:
|
|
8
|
-
type: str
|
|
9
|
-
required: true
|
|
10
|
-
positional: true
|
|
11
|
-
description: Instagram username
|
|
12
|
-
|
|
13
|
-
pipeline:
|
|
14
|
-
- navigate: https://www.instagram.com
|
|
15
|
-
|
|
16
|
-
- evaluate: |
|
|
17
|
-
(async () => {
|
|
18
|
-
const username = ${{ args.username | json }};
|
|
19
|
-
const res = await fetch(
|
|
20
|
-
'https://www.instagram.com/api/v1/users/web_profile_info/?username=' + encodeURIComponent(username),
|
|
21
|
-
{
|
|
22
|
-
credentials: 'include',
|
|
23
|
-
headers: { 'X-IG-App-ID': '936619743392459' }
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
if (!res.ok) throw new Error('HTTP ' + res.status + ' - make sure you are logged in to Instagram');
|
|
27
|
-
const data = await res.json();
|
|
28
|
-
const u = data?.data?.user;
|
|
29
|
-
if (!u) throw new Error('User not found: ' + username);
|
|
30
|
-
return [{
|
|
31
|
-
username: u.username,
|
|
32
|
-
name: u.full_name || '',
|
|
33
|
-
bio: (u.biography || '').replace(/\n/g, ' ').substring(0, 120),
|
|
34
|
-
followers: u.edge_followed_by?.count ?? 0,
|
|
35
|
-
following: u.edge_follow?.count ?? 0,
|
|
36
|
-
posts: u.edge_owner_to_timeline_media?.count ?? 0,
|
|
37
|
-
verified: u.is_verified ? 'Yes' : 'No',
|
|
38
|
-
url: 'https://www.instagram.com/' + u.username,
|
|
39
|
-
}];
|
|
40
|
-
})()
|
|
41
|
-
|
|
42
|
-
columns: [username, name, followers, following, posts, verified, bio]
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
site: instagram
|
|
2
|
-
name: save
|
|
3
|
-
description: Save (bookmark) an Instagram post
|
|
4
|
-
domain: www.instagram.com
|
|
5
|
-
|
|
6
|
-
args:
|
|
7
|
-
username:
|
|
8
|
-
type: str
|
|
9
|
-
required: true
|
|
10
|
-
positional: true
|
|
11
|
-
description: Username of the post author
|
|
12
|
-
index:
|
|
13
|
-
type: int
|
|
14
|
-
default: 1
|
|
15
|
-
description: Post index (1 = most recent)
|
|
16
|
-
|
|
17
|
-
pipeline:
|
|
18
|
-
- navigate: https://www.instagram.com
|
|
19
|
-
|
|
20
|
-
- evaluate: |
|
|
21
|
-
(async () => {
|
|
22
|
-
const username = ${{ args.username | json }};
|
|
23
|
-
const idx = ${{ args.index }} - 1;
|
|
24
|
-
const headers = { 'X-IG-App-ID': '936619743392459' };
|
|
25
|
-
const opts = { credentials: 'include', headers };
|
|
26
|
-
|
|
27
|
-
const r1 = await fetch('https://www.instagram.com/api/v1/users/web_profile_info/?username=' + encodeURIComponent(username), opts);
|
|
28
|
-
if (!r1.ok) throw new Error('User not found: ' + username);
|
|
29
|
-
const userId = (await r1.json())?.data?.user?.id;
|
|
30
|
-
|
|
31
|
-
const r2 = await fetch('https://www.instagram.com/api/v1/feed/user/' + userId + '/?count=' + (idx + 1), opts);
|
|
32
|
-
const posts = (await r2.json())?.items || [];
|
|
33
|
-
if (idx >= posts.length) throw new Error('Post index ' + (idx + 1) + ' not found');
|
|
34
|
-
const pk = posts[idx].pk;
|
|
35
|
-
const caption = (posts[idx].caption?.text || '').substring(0, 60);
|
|
36
|
-
|
|
37
|
-
const csrf = document.cookie.match(/csrftoken=([^;]+)/)?.[1] || '';
|
|
38
|
-
const r3 = await fetch('https://www.instagram.com/api/v1/web/save/' + pk + '/save/', {
|
|
39
|
-
method: 'POST', credentials: 'include',
|
|
40
|
-
headers: { ...headers, 'X-CSRFToken': csrf, 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
41
|
-
});
|
|
42
|
-
if (!r3.ok) throw new Error('Failed to save: HTTP ' + r3.status);
|
|
43
|
-
return [{ status: 'Saved', user: username, post: caption || '(post #' + (idx+1) + ')' }];
|
|
44
|
-
})()
|
|
45
|
-
|
|
46
|
-
columns: [status, user, post]
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
site: instagram
|
|
2
|
-
name: saved
|
|
3
|
-
description: Get your saved Instagram posts
|
|
4
|
-
domain: www.instagram.com
|
|
5
|
-
|
|
6
|
-
args:
|
|
7
|
-
limit:
|
|
8
|
-
type: int
|
|
9
|
-
default: 20
|
|
10
|
-
description: Number of saved posts
|
|
11
|
-
|
|
12
|
-
pipeline:
|
|
13
|
-
- navigate: https://www.instagram.com
|
|
14
|
-
|
|
15
|
-
- evaluate: |
|
|
16
|
-
(async () => {
|
|
17
|
-
const limit = ${{ args.limit }};
|
|
18
|
-
const res = await fetch(
|
|
19
|
-
'https://www.instagram.com/api/v1/feed/saved/posts/',
|
|
20
|
-
{
|
|
21
|
-
credentials: 'include',
|
|
22
|
-
headers: { 'X-IG-App-ID': '936619743392459' }
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
if (!res.ok) throw new Error('HTTP ' + res.status + ' - make sure you are logged in to Instagram');
|
|
26
|
-
const data = await res.json();
|
|
27
|
-
return (data?.items || []).slice(0, limit).map((item, i) => {
|
|
28
|
-
const m = item?.media;
|
|
29
|
-
return {
|
|
30
|
-
index: i + 1,
|
|
31
|
-
user: m?.user?.username || '',
|
|
32
|
-
caption: (m?.caption?.text || '').replace(/\n/g, ' ').substring(0, 100),
|
|
33
|
-
likes: m?.like_count ?? 0,
|
|
34
|
-
comments: m?.comment_count ?? 0,
|
|
35
|
-
type: m?.media_type === 1 ? 'photo' : m?.media_type === 2 ? 'video' : 'carousel',
|
|
36
|
-
};
|
|
37
|
-
});
|
|
38
|
-
})()
|
|
39
|
-
|
|
40
|
-
columns: [index, user, caption, likes, comments, type]
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
site: instagram
|
|
2
|
-
name: search
|
|
3
|
-
description: Search Instagram users
|
|
4
|
-
domain: www.instagram.com
|
|
5
|
-
|
|
6
|
-
args:
|
|
7
|
-
query:
|
|
8
|
-
type: str
|
|
9
|
-
required: true
|
|
10
|
-
positional: true
|
|
11
|
-
description: Search query
|
|
12
|
-
limit:
|
|
13
|
-
type: int
|
|
14
|
-
default: 10
|
|
15
|
-
description: Number of results
|
|
16
|
-
|
|
17
|
-
pipeline:
|
|
18
|
-
- navigate: https://www.instagram.com
|
|
19
|
-
|
|
20
|
-
- evaluate: |
|
|
21
|
-
(async () => {
|
|
22
|
-
const query = ${{ args.query | json }};
|
|
23
|
-
const limit = ${{ args.limit }};
|
|
24
|
-
const res = await fetch(
|
|
25
|
-
'https://www.instagram.com/web/search/topsearch/?query=' + encodeURIComponent(query) + '&context=user',
|
|
26
|
-
{
|
|
27
|
-
credentials: 'include',
|
|
28
|
-
headers: { 'X-IG-App-ID': '936619743392459' }
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
if (!res.ok) throw new Error('HTTP ' + res.status + ' - make sure you are logged in to Instagram');
|
|
32
|
-
const data = await res.json();
|
|
33
|
-
const users = (data?.users || []).slice(0, limit);
|
|
34
|
-
return users.map((item, i) => ({
|
|
35
|
-
rank: i + 1,
|
|
36
|
-
username: item.user?.username || '',
|
|
37
|
-
name: item.user?.full_name || '',
|
|
38
|
-
verified: item.user?.is_verified ? 'Yes' : 'No',
|
|
39
|
-
private: item.user?.is_private ? 'Yes' : 'No',
|
|
40
|
-
url: 'https://www.instagram.com/' + (item.user?.username || ''),
|
|
41
|
-
}));
|
|
42
|
-
})()
|
|
43
|
-
|
|
44
|
-
columns: [rank, username, name, verified, private, url]
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
site: instagram
|
|
2
|
-
name: unfollow
|
|
3
|
-
description: Unfollow an Instagram user
|
|
4
|
-
domain: www.instagram.com
|
|
5
|
-
|
|
6
|
-
args:
|
|
7
|
-
username:
|
|
8
|
-
type: str
|
|
9
|
-
required: true
|
|
10
|
-
positional: true
|
|
11
|
-
description: Instagram username to unfollow
|
|
12
|
-
|
|
13
|
-
pipeline:
|
|
14
|
-
- navigate: https://www.instagram.com
|
|
15
|
-
|
|
16
|
-
- evaluate: |
|
|
17
|
-
(async () => {
|
|
18
|
-
const username = ${{ args.username | json }};
|
|
19
|
-
const headers = { 'X-IG-App-ID': '936619743392459' };
|
|
20
|
-
const opts = { credentials: 'include', headers };
|
|
21
|
-
|
|
22
|
-
const r1 = await fetch('https://www.instagram.com/api/v1/users/web_profile_info/?username=' + encodeURIComponent(username), opts);
|
|
23
|
-
if (!r1.ok) throw new Error('User not found: ' + username);
|
|
24
|
-
const d1 = await r1.json();
|
|
25
|
-
const userId = d1?.data?.user?.id;
|
|
26
|
-
if (!userId) throw new Error('User not found: ' + username);
|
|
27
|
-
|
|
28
|
-
const csrf = document.cookie.match(/csrftoken=([^;]+)/)?.[1] || '';
|
|
29
|
-
const r2 = await fetch('https://www.instagram.com/api/v1/friendships/destroy/' + userId + '/', {
|
|
30
|
-
method: 'POST',
|
|
31
|
-
credentials: 'include',
|
|
32
|
-
headers: { ...headers, 'X-CSRFToken': csrf, 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
33
|
-
});
|
|
34
|
-
if (!r2.ok) throw new Error('Failed to unfollow: HTTP ' + r2.status);
|
|
35
|
-
return [{ status: 'Unfollowed', username }];
|
|
36
|
-
})()
|
|
37
|
-
|
|
38
|
-
columns: [status, username]
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
site: instagram
|
|
2
|
-
name: unlike
|
|
3
|
-
description: Unlike an Instagram post
|
|
4
|
-
domain: www.instagram.com
|
|
5
|
-
|
|
6
|
-
args:
|
|
7
|
-
username:
|
|
8
|
-
type: str
|
|
9
|
-
required: true
|
|
10
|
-
positional: true
|
|
11
|
-
description: Username of the post author
|
|
12
|
-
index:
|
|
13
|
-
type: int
|
|
14
|
-
default: 1
|
|
15
|
-
description: Post index (1 = most recent)
|
|
16
|
-
|
|
17
|
-
pipeline:
|
|
18
|
-
- navigate: https://www.instagram.com
|
|
19
|
-
|
|
20
|
-
- evaluate: |
|
|
21
|
-
(async () => {
|
|
22
|
-
const username = ${{ args.username | json }};
|
|
23
|
-
const idx = ${{ args.index }} - 1;
|
|
24
|
-
const headers = { 'X-IG-App-ID': '936619743392459' };
|
|
25
|
-
const opts = { credentials: 'include', headers };
|
|
26
|
-
|
|
27
|
-
const r1 = await fetch('https://www.instagram.com/api/v1/users/web_profile_info/?username=' + encodeURIComponent(username), opts);
|
|
28
|
-
if (!r1.ok) throw new Error('User not found: ' + username);
|
|
29
|
-
const userId = (await r1.json())?.data?.user?.id;
|
|
30
|
-
|
|
31
|
-
const r2 = await fetch('https://www.instagram.com/api/v1/feed/user/' + userId + '/?count=' + (idx + 1), opts);
|
|
32
|
-
const posts = (await r2.json())?.items || [];
|
|
33
|
-
if (idx >= posts.length) throw new Error('Post index ' + (idx + 1) + ' not found');
|
|
34
|
-
const pk = posts[idx].pk;
|
|
35
|
-
const caption = (posts[idx].caption?.text || '').substring(0, 60);
|
|
36
|
-
|
|
37
|
-
const csrf = document.cookie.match(/csrftoken=([^;]+)/)?.[1] || '';
|
|
38
|
-
const r3 = await fetch('https://www.instagram.com/api/v1/web/likes/' + pk + '/unlike/', {
|
|
39
|
-
method: 'POST', credentials: 'include',
|
|
40
|
-
headers: { ...headers, 'X-CSRFToken': csrf, 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
41
|
-
});
|
|
42
|
-
if (!r3.ok) throw new Error('Failed to unlike: HTTP ' + r3.status);
|
|
43
|
-
return [{ status: 'Unliked', user: username, post: caption || '(post #' + (idx+1) + ')' }];
|
|
44
|
-
})()
|
|
45
|
-
|
|
46
|
-
columns: [status, user, post]
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
site: instagram
|
|
2
|
-
name: unsave
|
|
3
|
-
description: Unsave (remove bookmark) an Instagram post
|
|
4
|
-
domain: www.instagram.com
|
|
5
|
-
|
|
6
|
-
args:
|
|
7
|
-
username:
|
|
8
|
-
type: str
|
|
9
|
-
required: true
|
|
10
|
-
positional: true
|
|
11
|
-
description: Username of the post author
|
|
12
|
-
index:
|
|
13
|
-
type: int
|
|
14
|
-
default: 1
|
|
15
|
-
description: Post index (1 = most recent)
|
|
16
|
-
|
|
17
|
-
pipeline:
|
|
18
|
-
- navigate: https://www.instagram.com
|
|
19
|
-
|
|
20
|
-
- evaluate: |
|
|
21
|
-
(async () => {
|
|
22
|
-
const username = ${{ args.username | json }};
|
|
23
|
-
const idx = ${{ args.index }} - 1;
|
|
24
|
-
const headers = { 'X-IG-App-ID': '936619743392459' };
|
|
25
|
-
const opts = { credentials: 'include', headers };
|
|
26
|
-
|
|
27
|
-
const r1 = await fetch('https://www.instagram.com/api/v1/users/web_profile_info/?username=' + encodeURIComponent(username), opts);
|
|
28
|
-
if (!r1.ok) throw new Error('User not found: ' + username);
|
|
29
|
-
const userId = (await r1.json())?.data?.user?.id;
|
|
30
|
-
|
|
31
|
-
const r2 = await fetch('https://www.instagram.com/api/v1/feed/user/' + userId + '/?count=' + (idx + 1), opts);
|
|
32
|
-
const posts = (await r2.json())?.items || [];
|
|
33
|
-
if (idx >= posts.length) throw new Error('Post index ' + (idx + 1) + ' not found');
|
|
34
|
-
const pk = posts[idx].pk;
|
|
35
|
-
const caption = (posts[idx].caption?.text || '').substring(0, 60);
|
|
36
|
-
|
|
37
|
-
const csrf = document.cookie.match(/csrftoken=([^;]+)/)?.[1] || '';
|
|
38
|
-
const r3 = await fetch('https://www.instagram.com/api/v1/web/save/' + pk + '/unsave/', {
|
|
39
|
-
method: 'POST', credentials: 'include',
|
|
40
|
-
headers: { ...headers, 'X-CSRFToken': csrf, 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
41
|
-
});
|
|
42
|
-
if (!r3.ok) throw new Error('Failed to unsave: HTTP ' + r3.status);
|
|
43
|
-
return [{ status: 'Unsaved', user: username, post: caption || '(post #' + (idx+1) + ')' }];
|
|
44
|
-
})()
|
|
45
|
-
|
|
46
|
-
columns: [status, user, post]
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
site: instagram
|
|
2
|
-
name: user
|
|
3
|
-
description: Get recent posts from an Instagram user
|
|
4
|
-
domain: www.instagram.com
|
|
5
|
-
|
|
6
|
-
args:
|
|
7
|
-
username:
|
|
8
|
-
type: str
|
|
9
|
-
required: true
|
|
10
|
-
positional: true
|
|
11
|
-
description: Instagram username
|
|
12
|
-
limit:
|
|
13
|
-
type: int
|
|
14
|
-
default: 12
|
|
15
|
-
description: Number of posts
|
|
16
|
-
|
|
17
|
-
pipeline:
|
|
18
|
-
- navigate: https://www.instagram.com
|
|
19
|
-
|
|
20
|
-
- evaluate: |
|
|
21
|
-
(async () => {
|
|
22
|
-
const username = ${{ args.username | json }};
|
|
23
|
-
const limit = ${{ args.limit }};
|
|
24
|
-
const headers = { 'X-IG-App-ID': '936619743392459' };
|
|
25
|
-
const opts = { credentials: 'include', headers };
|
|
26
|
-
|
|
27
|
-
// Get user ID first
|
|
28
|
-
const r1 = await fetch(
|
|
29
|
-
'https://www.instagram.com/api/v1/users/web_profile_info/?username=' + encodeURIComponent(username),
|
|
30
|
-
opts
|
|
31
|
-
);
|
|
32
|
-
if (!r1.ok) throw new Error('HTTP ' + r1.status + ' - make sure you are logged in to Instagram');
|
|
33
|
-
const d1 = await r1.json();
|
|
34
|
-
const userId = d1?.data?.user?.id;
|
|
35
|
-
if (!userId) throw new Error('User not found: ' + username);
|
|
36
|
-
|
|
37
|
-
// Get user feed
|
|
38
|
-
const r2 = await fetch(
|
|
39
|
-
'https://www.instagram.com/api/v1/feed/user/' + userId + '/?count=' + limit,
|
|
40
|
-
opts
|
|
41
|
-
);
|
|
42
|
-
if (!r2.ok) throw new Error('Failed to fetch user feed: HTTP ' + r2.status);
|
|
43
|
-
const d2 = await r2.json();
|
|
44
|
-
return (d2?.items || []).slice(0, limit).map((p, i) => ({
|
|
45
|
-
index: i + 1,
|
|
46
|
-
caption: (p.caption?.text || '').replace(/\n/g, ' ').substring(0, 100),
|
|
47
|
-
likes: p.like_count ?? 0,
|
|
48
|
-
comments: p.comment_count ?? 0,
|
|
49
|
-
type: p.media_type === 1 ? 'photo' : p.media_type === 2 ? 'video' : 'carousel',
|
|
50
|
-
date: p.taken_at ? new Date(p.taken_at * 1000).toLocaleDateString() : '',
|
|
51
|
-
}));
|
|
52
|
-
})()
|
|
53
|
-
|
|
54
|
-
columns: [index, caption, likes, comments, type, date]
|
package/dist/clis/jike/post.yaml
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
site: jike
|
|
2
|
-
name: post
|
|
3
|
-
description: 即刻帖子详情及评论
|
|
4
|
-
domain: m.okjike.com
|
|
5
|
-
browser: true
|
|
6
|
-
|
|
7
|
-
args:
|
|
8
|
-
id:
|
|
9
|
-
positional: true
|
|
10
|
-
type: string
|
|
11
|
-
required: true
|
|
12
|
-
description: Post ID (from post URL)
|
|
13
|
-
|
|
14
|
-
pipeline:
|
|
15
|
-
- navigate: https://m.okjike.com/originalPosts/${{ args.id }}
|
|
16
|
-
|
|
17
|
-
# 从 Next.js SSR 内嵌 JSON 中提取帖子和评论
|
|
18
|
-
- evaluate: |
|
|
19
|
-
(() => {
|
|
20
|
-
try {
|
|
21
|
-
const el = document.querySelector('script[type="application/json"]');
|
|
22
|
-
if (!el) return [];
|
|
23
|
-
const data = JSON.parse(el.textContent);
|
|
24
|
-
const pageProps = data?.props?.pageProps || {};
|
|
25
|
-
const post = pageProps.post || {};
|
|
26
|
-
const comments = pageProps.comments || [];
|
|
27
|
-
|
|
28
|
-
const result = [{
|
|
29
|
-
type: 'post',
|
|
30
|
-
author: post.user?.screenName || '',
|
|
31
|
-
content: post.content || '',
|
|
32
|
-
likes: post.likeCount || 0,
|
|
33
|
-
time: post.createdAt || '',
|
|
34
|
-
}];
|
|
35
|
-
|
|
36
|
-
for (const c of comments) {
|
|
37
|
-
result.push({
|
|
38
|
-
type: 'comment',
|
|
39
|
-
author: c.user?.screenName || '',
|
|
40
|
-
content: (c.content || '').replace(/\n/g, ' '),
|
|
41
|
-
likes: c.likeCount || 0,
|
|
42
|
-
time: c.createdAt || '',
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
return result;
|
|
47
|
-
} catch (e) {
|
|
48
|
-
return [];
|
|
49
|
-
}
|
|
50
|
-
})()
|
|
51
|
-
|
|
52
|
-
- map:
|
|
53
|
-
type: ${{ item.type }}
|
|
54
|
-
author: ${{ item.author }}
|
|
55
|
-
content: ${{ item.content }}
|
|
56
|
-
likes: ${{ item.likes }}
|
|
57
|
-
time: ${{ item.time }}
|
|
58
|
-
|
|
59
|
-
columns: [type, author, content, likes, time]
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
site: jike
|
|
2
|
-
name: topic
|
|
3
|
-
description: 即刻话题/圈子帖子
|
|
4
|
-
domain: m.okjike.com
|
|
5
|
-
browser: true
|
|
6
|
-
|
|
7
|
-
args:
|
|
8
|
-
id:
|
|
9
|
-
positional: true
|
|
10
|
-
type: string
|
|
11
|
-
required: true
|
|
12
|
-
description: Topic ID (from topic URL, e.g. 553870e8e4b0cafb0a1bef68)
|
|
13
|
-
limit:
|
|
14
|
-
type: int
|
|
15
|
-
default: 20
|
|
16
|
-
description: Number of posts
|
|
17
|
-
|
|
18
|
-
pipeline:
|
|
19
|
-
- navigate: https://m.okjike.com/topics/${{ args.id }}
|
|
20
|
-
|
|
21
|
-
# 从 Next.js SSR 内嵌 JSON 中提取话题帖子
|
|
22
|
-
- evaluate: |
|
|
23
|
-
(() => {
|
|
24
|
-
try {
|
|
25
|
-
const el = document.querySelector('script[type="application/json"]');
|
|
26
|
-
if (!el) return [];
|
|
27
|
-
const data = JSON.parse(el.textContent);
|
|
28
|
-
const pageProps = data?.props?.pageProps || {};
|
|
29
|
-
const posts = pageProps.posts || [];
|
|
30
|
-
return posts.map(p => ({
|
|
31
|
-
content: (p.content || '').replace(/\n/g, ' ').slice(0, 80),
|
|
32
|
-
author: p.user?.screenName || '',
|
|
33
|
-
likes: p.likeCount || 0,
|
|
34
|
-
comments: p.commentCount || 0,
|
|
35
|
-
time: p.actionTime || p.createdAt || '',
|
|
36
|
-
id: p.id || '',
|
|
37
|
-
}));
|
|
38
|
-
} catch (e) {
|
|
39
|
-
return [];
|
|
40
|
-
}
|
|
41
|
-
})()
|
|
42
|
-
|
|
43
|
-
- map:
|
|
44
|
-
content: ${{ item.content }}
|
|
45
|
-
author: ${{ item.author }}
|
|
46
|
-
likes: ${{ item.likes }}
|
|
47
|
-
comments: ${{ item.comments }}
|
|
48
|
-
time: ${{ item.time }}
|
|
49
|
-
url: https://web.okjike.com/originalPost/${{ item.id }}
|
|
50
|
-
|
|
51
|
-
- limit: ${{ args.limit }}
|
|
52
|
-
|
|
53
|
-
columns: [content, author, likes, comments, time, url]
|
package/dist/clis/jike/user.yaml
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
site: jike
|
|
2
|
-
name: user
|
|
3
|
-
description: 即刻用户动态
|
|
4
|
-
domain: m.okjike.com
|
|
5
|
-
browser: true
|
|
6
|
-
|
|
7
|
-
args:
|
|
8
|
-
username:
|
|
9
|
-
positional: true
|
|
10
|
-
type: string
|
|
11
|
-
required: true
|
|
12
|
-
description: Username from profile URL (e.g. wenhao1996)
|
|
13
|
-
limit:
|
|
14
|
-
type: int
|
|
15
|
-
default: 20
|
|
16
|
-
description: Number of posts
|
|
17
|
-
|
|
18
|
-
pipeline:
|
|
19
|
-
- navigate: https://m.okjike.com/users/${{ args.username }}
|
|
20
|
-
|
|
21
|
-
# 从 Next.js SSR 内嵌 JSON 中提取用户动态
|
|
22
|
-
- evaluate: |
|
|
23
|
-
(() => {
|
|
24
|
-
try {
|
|
25
|
-
const el = document.querySelector('script[type="application/json"]');
|
|
26
|
-
if (!el) return [];
|
|
27
|
-
const data = JSON.parse(el.textContent);
|
|
28
|
-
const posts = data?.props?.pageProps?.posts || [];
|
|
29
|
-
return posts.map(p => ({
|
|
30
|
-
content: (p.content || '').replace(/\n/g, ' ').slice(0, 80),
|
|
31
|
-
type: p.type === 'ORIGINAL_POST' ? 'post' : p.type === 'REPOST' ? 'repost' : p.type || '',
|
|
32
|
-
likes: p.likeCount || 0,
|
|
33
|
-
comments: p.commentCount || 0,
|
|
34
|
-
time: p.actionTime || p.createdAt || '',
|
|
35
|
-
id: p.id || '',
|
|
36
|
-
}));
|
|
37
|
-
} catch (e) {
|
|
38
|
-
return [];
|
|
39
|
-
}
|
|
40
|
-
})()
|
|
41
|
-
|
|
42
|
-
- map:
|
|
43
|
-
content: ${{ item.content }}
|
|
44
|
-
type: ${{ item.type }}
|
|
45
|
-
likes: ${{ item.likes }}
|
|
46
|
-
comments: ${{ item.comments }}
|
|
47
|
-
time: ${{ item.time }}
|
|
48
|
-
url: https://web.okjike.com/originalPost/${{ item.id }}
|
|
49
|
-
|
|
50
|
-
- limit: ${{ args.limit }}
|
|
51
|
-
|
|
52
|
-
columns: [content, type, likes, comments, time, url]
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
site: jimeng
|
|
2
|
-
name: generate
|
|
3
|
-
description: 即梦AI 文生图 — 输入 prompt 生成图片
|
|
4
|
-
domain: jimeng.jianying.com
|
|
5
|
-
strategy: cookie
|
|
6
|
-
browser: true
|
|
7
|
-
|
|
8
|
-
args:
|
|
9
|
-
prompt:
|
|
10
|
-
positional: true
|
|
11
|
-
type: string
|
|
12
|
-
required: true
|
|
13
|
-
description: "图片描述 prompt"
|
|
14
|
-
model:
|
|
15
|
-
type: string
|
|
16
|
-
default: "high_aes_general_v50"
|
|
17
|
-
description: "模型: high_aes_general_v50 (5.0 Lite), high_aes_general_v42 (4.6), high_aes_general_v40 (4.0)"
|
|
18
|
-
wait:
|
|
19
|
-
type: int
|
|
20
|
-
default: 40
|
|
21
|
-
description: "等待生成完成的秒数"
|
|
22
|
-
|
|
23
|
-
columns: [status, prompt, image_count, image_urls]
|
|
24
|
-
|
|
25
|
-
pipeline:
|
|
26
|
-
- navigate: https://jimeng.jianying.com/ai-tool/generate?type=image&workspace=0
|
|
27
|
-
- wait: 3
|
|
28
|
-
- evaluate: |
|
|
29
|
-
(async () => {
|
|
30
|
-
const prompt = ${{ args.prompt | json }};
|
|
31
|
-
const waitSec = ${{ args.wait }};
|
|
32
|
-
|
|
33
|
-
// Step 1: Count existing images before generation
|
|
34
|
-
const beforeImgs = document.querySelectorAll('img[src*="dreamina-sign"], img[src*="tb4s082cfz"]').length;
|
|
35
|
-
|
|
36
|
-
// Step 2: Clear and set prompt
|
|
37
|
-
const editors = document.querySelectorAll('[contenteditable="true"]');
|
|
38
|
-
const editor = editors[0];
|
|
39
|
-
if (!editor) return [{ status: 'failed', prompt: prompt, image_count: 0, image_urls: 'Editor not found' }];
|
|
40
|
-
|
|
41
|
-
editor.focus();
|
|
42
|
-
await new Promise(r => setTimeout(r, 200));
|
|
43
|
-
document.execCommand('selectAll');
|
|
44
|
-
await new Promise(r => setTimeout(r, 100));
|
|
45
|
-
document.execCommand('delete');
|
|
46
|
-
await new Promise(r => setTimeout(r, 200));
|
|
47
|
-
document.execCommand('insertText', false, prompt);
|
|
48
|
-
await new Promise(r => setTimeout(r, 500));
|
|
49
|
-
|
|
50
|
-
// Step 3: Click generate
|
|
51
|
-
const btn = document.querySelector('.lv-btn.lv-btn-primary[class*="circle"]');
|
|
52
|
-
if (!btn) return [{ status: 'failed', prompt: prompt, image_count: 0, image_urls: 'Generate button not found' }];
|
|
53
|
-
btn.click();
|
|
54
|
-
|
|
55
|
-
// Step 4: Wait for new images to appear
|
|
56
|
-
let newImgs = [];
|
|
57
|
-
for (let i = 0; i < waitSec; i++) {
|
|
58
|
-
await new Promise(r => setTimeout(r, 1000));
|
|
59
|
-
const allImgs = document.querySelectorAll('img[src*="dreamina-sign"], img[src*="tb4s082cfz"]');
|
|
60
|
-
if (allImgs.length > beforeImgs) {
|
|
61
|
-
// New images appeared — generation complete
|
|
62
|
-
newImgs = Array.from(allImgs).slice(0, allImgs.length - beforeImgs);
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
if (newImgs.length === 0) {
|
|
68
|
-
return [{ status: 'timeout', prompt: prompt, image_count: 0, image_urls: 'Generation may still be in progress' }];
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// Step 5: Extract image URLs (use thumbnail URLs which are accessible)
|
|
72
|
-
const urls = newImgs.map(img => img.src);
|
|
73
|
-
|
|
74
|
-
return [{
|
|
75
|
-
status: 'success',
|
|
76
|
-
prompt: prompt.substring(0, 80),
|
|
77
|
-
image_count: urls.length,
|
|
78
|
-
image_urls: urls.join('\n')
|
|
79
|
-
}];
|
|
80
|
-
})()
|
|
81
|
-
- map:
|
|
82
|
-
status: ${{ item.status }}
|
|
83
|
-
prompt: ${{ item.prompt }}
|
|
84
|
-
image_count: ${{ item.image_count }}
|
|
85
|
-
image_urls: ${{ item.image_urls }}
|