Loading...
Loading...
Download images and videos from X (Twitter) posts to ~/Downloads. Use when user shares an X/Twitter link and wants to save media, or says '下载', 'download', '保存图片', '保存视频', or provides a x.com/twitter.com URL with intent to download media.
npx skill4agent add lijigang/ljg-skills ljg-x-downloadyt-dlphttps://x.com/user/status/123456https://twitter.com/user/status/123456https://mobile.twitter.com/user/status/123456?s=20curl -Ls -o /dev/null -w '%{url_effective}' "SHORT_URL"yt-dlp -o "~/Downloads/%(uploader)s_%(id)s.%(ext)s" "URL"--dump-jsonyt-dlp --dump-json "URL" 2>&1thumbnailsno videologinauthenticationthumbnailsname=smallname=mediumname=origcurl -L -o ~/Downloads/tweet_ID_1.jpg "https://pbs.twimg.com/media/xxx?format=jpg&name=orig"
curl -L -o ~/Downloads/tweet_ID_2.jpg "https://pbs.twimg.com/media/yyy?format=jpg&name=orig"formatls -lhloginSign inage-restricted--cookies-from-browser chromeyt-dlp --cookies-from-browser chrome -o "~/Downloads/%(uploader)s_%(id)s.%(ext)s" "URL"