Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

instagram private viewer api github

npm install github:dilame/instagram-private-api
Comment

instagram private viewer api github

npm install instagram-private-api
Comment

instagram private viewer api github

import { IgApiClient } from './index';import { sample } from 'lodash';const ig = new IgApiClient();// You must generate device id's before login.// Id's generated based on seed// So if you pass the same value as first argument - the same id's are generated every timeig.state.generateDevice(process.env.IG_USERNAME);// Optionally you can setup proxy urlig.state.proxyUrl = process.env.IG_PROXY;(async () => {  // Execute all requests prior to authorization in the real Android application  // Not required but recommended  await ig.simulate.preLoginFlow();  const loggedInUser = await ig.account.login(process.env.IG_USERNAME, process.env.IG_PASSWORD);  // The same as preLoginFlow()  // Optionally wrap it to process.nextTick so we dont need to wait ending of this bunch of requests  process.nextTick(async () => await ig.simulate.postLoginFlow());  // Create UserFeed instance to get loggedInUser's posts  const userFeed = ig.feed.user(loggedInUser.pk);  const myPostsFirstPage = await userFeed.items();  // All the feeds are auto-paginated, so you just need to call .items() sequentially to get next page  const myPostsSecondPage = await userFeed.items();  await ig . media . like ( {     // Like our first post from first page or first post from second page randomly    mediaId: sample([myPostsFirstPage[0].id, myPostsSecondPage[0].id]),    moduleInfo: {      module_name: 'profile',      user_id: loggedInUser.pk,      username: loggedInUser.username,    },    d: sample([0, 1]),  });})();
Comment

PREVIOUS NEXT
Code Example
Shell :: gaussian corrdinates to pdb 
Shell :: linux uudelleen nimeä kansio 
Shell :: the folder cannot be copied because you do not have permissions to create it in the destination 
Shell :: echo str terminal meaning 
Shell :: command filter folder 
Shell :: codition in bash 
Shell :: how to edit etc/hosts linux error readonly 
Shell :: stop a service at startup linux amazon 2 
Shell :: cmd concatenate files 
Shell :: install kubernetes on wsl 
Shell :: bash test 
Shell :: bash if m1 or intel 
Shell :: enter your internal repository url 
Shell :: salesforce github format 
Shell :: makefile shell if 
Shell :: GitLab Break the git init --initial-branch=main out into two commands 
Shell :: opera mini for ubuntu 18.04 
Shell :: get cwd in shell script 
Shell :: find syntax in linux 
Shell :: github merge branch to master 
Shell :: netflix app ubuntu 
Shell :: delete typeeset variable bash 
Shell :: error: Cannot resolve module 
Shell :: how to install clementine music player on ubuntu 
Shell :: What does maven clean install -U do? 
Shell :: Hands-on GitHub Actions: Implement CI/CD with GitHub Action Workflows for Your Applications.pdf 
Shell :: locobucci installation 
Shell :: scipy optimize how to install 
Shell :: jre-8u331-linux-x64.rpm 
Shell :: sed replace specific character position 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =