Come vedere chi non mi segue su Instagram – No software di terze parti

Hai appena notato che il numero di tuoi follower è diminuito ma non vuoi usare applicazioni di terze parti per vedere chi è stato? In questa guida vogliamo spigarti come vedere chi non mi segue su Instagram. Con questo metodo sappiate che non violate alcun TOS di Instagram in quanto la verifica avviene direttamente dalla console del vostro computer.

Come vedere chi non mi segue su Instagram – spiegazione

Utilizzando software esterni potreste essere momentaneamente bloccati (ricevendo il messaggio “attendi qualche minuto prima di riprovare“) da Instagram perchè violate i TOS (termini di servizi) che avete accettato quando vi siete iscritti al social network targato Meta.

Ecco quindi come vedere chi non mi segue su Instagram, la prima cosa da fare dovete recarvi nel repository di Abir Taheer e copiare il contenuto del file instagram-follower-following.js o in alternativa quello che incolliamo qui sotto:

const fetchOptions = {
  credentials: "include",
  headers: {
    "X-IG-App-ID": "936619743392459",
  },
  method: "GET",
};

const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
const random = (min, max) => Math.ceil(Math.random() * (max - min)) + min;

// This function handles all of the pagination logic
// Calls the API recursively until there are no more pages to load
const concatFriendshipsApiResponse = async (
  list,
  user_id,
  count,
  next_max_id = ""
) => {
  let url = `https://www.instagram.com/api/v1/friendships/${user_id}/${list}/
             ?count=${count}`;
  if (next_max_id) {
    url += `&max_id=${next_max_id}`;
  }

  const data = await fetch(url, fetchOptions).then((r) => r.json());

  if (data.next_max_id) {
    const timeToSleep = random(100, 500);
    console.log(
      `Loaded ${data.users.length} ${list}. Sleeping ${timeToSleep}
       ms to avoid rate limiting`
    );

    await sleep(timeToSleep);

    return data.users.concat(
      await concatFriendshipsApiResponse(list, user_id, count, data.next_max_id)
    );
  }

  return data.users;
};

// helper methods to make the code a bit more readable
const getFollowers = (user_id, count = 50, next_max_id = "") => {
  return concatFriendshipsApiResponse("followers", user_id, count, next_max_id);
};

const getFollowing = (user_id, count = 50, next_max_id = "") => {
  return concatFriendshipsApiResponse("following", user_id, count, next_max_id);
};

const getUserId = async (username) => {
  const lower = username.toLowerCase();
  const url = `https://www.instagram.com/api/v1/web/search/
topsearch/?context=blended&query=${lower}&include_reel=false`;
  const data = await fetch(url, fetchOptions).then((r) => r.json());

  const result = data.users?.find(
    (result) => result.user.username.toLowerCase() === lower
  );

  return result?.user?.pk || null;
};

const getUserFriendshipStats = async (username) => {
  const user_id = await getUserId(username);

  if (!user_id) {
    throw new Error(`Could not find user with username ${username}`);
  }

  const followers = await getFollowers(user_id);
  const following = await getFollowing(user_id);

  const followersUsernames = followers.map((follower) =>
    follower.username.toLowerCase()
  );
  const followingUsernames = following.map((followed) =>
    followed.username.toLowerCase()
  );

  const followerSet = new Set(followersUsernames);
  const followingSet = new Set(followingUsernames);

  console.log(Array(28).fill("-").join(""));
  console.log(
    `Fetched`,
    followerSet.size,
    "followers and ",
    followingSet.size,
    " following."
  );

  console.log(
    `If this doesn't seem right then some of the output might be inaccurate`
  );

  const PeopleIDontFollowBack = Array.from(followerSet).filter(
    (follower) => !followingSet.has(follower)
  );

  const PeopleNotFollowingMeBack = Array.from(followingSet).filter(
    (following) => !followerSet.has(following)
  );

  return {
    PeopleIDontFollowBack,
    PeopleNotFollowingMeBack,
  };
};

// Replace 'example_username' following with your instagram username
const username = "example_username";

getUserFriendshipStats(username).then(console.log);

Successivamente dovete fare l’accesso al vostro account Instagram da pc, cliccare con il tasto destro in qualsiasi parte dello schermo, cliccare su Ispeziona Elemento, scegliere il tab Console, incollare il codice appena copia e modificare la parte in grassetto → const username = “example_username“.

Fatto questo premete invio e aspettate che la magia cominci. Vi si apriranno due liste:

Come vedere chi non mi segue su Instagram

Cliccando su PeopleNotFollowingMeBack abbiamo scoperto come vedere chi non mi segue su Instagram.

Se hai trovato questo articolo interessante pensiamo possa interessanti: Regram il bot Telegram per spiare gli account Instagram.

715FansLike
1,158FollowersSegui
33FollowersSegui
Valerio Gambino
Valerio Gambinohttps://ko-fi.com/K3K0JBZ8
Sono nato a Palermo nel 1996. Studio presso l'Università di Palermo "Ingegneria Informatica e delle Telecomunicazioni" e lavoro come PHP Developer. Il web è lo strumento con cui comunico le mie passioni: il mondo Tech, il calcio e la Formula1. Mi interessano molto anche i Social Media, come comunicare con essi e come farsi notare in questo mare di pixel, ADS e frammenti di codice.

SCOPRI ANCHE