1.0.5 • Published 5 years ago
img2weibo v1.0.5
img2weibo
Get Weibo user id from image url.
Demo
Use in node
- Install: run
npm install img2weibo
- Get user id and url:
const userId = img2weibo('https://wx3.sinaimg.cn/large/632dab64ly1g0m3f02heoj20dc08wq6j.jpg'); // 1663937380
const userHome = `https://weibo.com/u/${userId}` // https://weibo.com/u/1663937380
Use as cli
$ npx img2weibo https://wx3.sinaimg.cn/large/632dab64ly1g0m3f02heoj20dc08wq6j.jpg
Image url: https://wx3.sinaimg.cn/large/632dab64ly1g0m3f02heoj20dc08wq6j.jpg
User id : 1663937380
User home: https://weibo.com/u/1663937380