Created
November 19, 2022 17:25
-
-
Save je8n/2277eb5515392345629a91814a74a257 to your computer and use it in GitHub Desktop.
pc > instagram > account > settings >> download your data with json... this gist save php file and open. following json and followers json choose after dump all contacts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if($_FILES["followers"]){ | |
$followers_json = file_get_contents($_FILES["followers"]["tmp_name"]); | |
$followers_json = json_decode($followers_json,true); | |
$following_json = file_get_contents($_FILES["following"]["tmp_name"]); | |
$following_json = json_decode($following_json,true); | |
$followers = []; | |
$following = []; | |
foreach ($followers_json["relationships_followers"] as $follower_json) { | |
$followers[] = $follower_json["string_list_data"][0]["value"]; | |
} | |
foreach ($following_json["relationships_following"] as $follower_json) { | |
$following[] = $follower_json["string_list_data"][0]["value"]; | |
} | |
sort($following); | |
$follower_0_html = ""; | |
$follower_1_html = ""; | |
foreach ($following as $following_row) { | |
if(in_array($following_row, $followers)) | |
$follower_1_html .= '<font style="color:green"><a style="text-decoration:none;color:black;" target="_black" href="https://www.instagram.com/'.$following_row.'">'.$following_row.'</a>: followers'.'</font><br>'; | |
else | |
$follower_0_html .= '<font style="color:red"><a style="text-decoration:none;color:black;" target="_black" href="https://www.instagram.com/'.$following_row.'">'.$following_row.'</a>: not followers'.'</font><br>'; | |
} | |
echo $follower_1_html; | |
echo $follower_0_html; | |
die(); | |
} | |
?><!DOCTYPE html> | |
<html> | |
<head> | |
<title>Following Followers Matches</title> | |
</head> | |
<body> | |
<form method="POST" enctype="multipart/form-data"> | |
<p> | |
Followers: | |
<input type="file" name="followers"> | |
</p> | |
<p> | |
Following: | |
<input type="file" name="following"> | |
</p> | |
<p> | |
<input type="submit" name="submit"> | |
</p> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment