我正在尝试从 Instagram 帐户列表中获取关注者数量。
我想集成 Instagram API 或任何黑客解决方案,以消除 Instagram 帐户上的关注者。
我针对上述问题找到了很多解决方案,但没有一个能正常工作
我关注的链接:获取 Instagram 粉丝数量
获取 Instagram 粉丝数量
据我所知,Instagram没有任何官方或非官方的API。
因此,我使用了 Node.Js 并按照以下方式实现了这一点极客之极客 code
Index.js
const express = require('express');
const followers = require('instagram-followers');
const app = express();
app.get('/' , (req , res)=>{
res.send("GeeksforGeeks");
});
app.get('/:username' , (req , res) => {
followers(req.params.username).then((count) => {
if(!count){
res.send("Account Not Found");
return;
}
res.send("Username " + req.params.username +
" have " + "<b>" + count + "</b>" + " followers");
});
});
// Server setup
app.listen(4000 , ()=>{
console.log("server is running on port 4000");
});
![enter image description here](https://i.stack.imgur.com/KTMsR.png)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)