Node Social Media
Wrapper to get posts, stories, and profile info from Twitter, Instagram, and Snapchat.
Getting Started
-
To use Instagram, you must first get the session ID from the cookies in your browser.
-
To use Twitter, you must first get the auth details from https://apps.twitter.com/app/new
let SocialMedia = ;async { //Providing a string as input will set the username for all three platforms let user = "joshuadun"; //Alternatively, set them individually by passing an object. You can leave platforms out if you do not need them. let user2 = snapName: "djkhaled305" instaName: "djkhaled" twitterName: "djkhaled"; //Must call user.load() await user; // //INSTAGRAM if user console; let IGPosts = await user; let IGStories = await user; let IGProfile = await user; console; console; console; // //SNAPCHAT if user console; let SCStories = await user; let SCcode = await user; console; //Note: bitmoji returns an object with a PNG buffer, and an SVG buffer console; //TWITTER if user console; let postCount = 3; let TWPosts = await user; let TWLikes = await user; let TWProfile = await user; console; console; console; };
Acknowledgments
- Uses twit package for Twitter
- Uses instagram-stories package for Instagram Stories