-
Notifications
You must be signed in to change notification settings - Fork 3
/
instadownloader.php
40 lines (31 loc) · 1.18 KB
/
instadownloader.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
//coded by Momos
//recode kepala kau
system('clear');
echo "
_ _ _ ____ ___ ____ ___ ____ _ _ _ _ _ _ ____ ____ ___ ____ ____
| |\ | [__ | |__| __ | \ | | | | | |\ | | | | |__| | \ |___ |__/
| | \| ___] | | | |__/ |__| |_|_| | \| |___ |__| | | |__/ |___ | \
Instagram Generate IMAGE/VIDEO Link
Made With ❤️ - Coded By Momos - IndoSec - Hidden Ghost Team
";
echo "Enter URL Post ( Ex: https://www.instagram.com/p/CFwxqaFAAcX ) : ";
$input = trim(fgets(STDIN));
// apdet link bagian di variable $url
$url = file_get_contents($input."/?__a=1");
$url2 = file_get_contents("https://api.instagram.com/oembed/?url=$input");
$data = json_decode($url2,true);
// get link Media
$getLink = json_decode($url);
if(isset($getLink->graphql->shortcode_media->video_url)){
$fixedLink = $getLink->graphql->shortcode_media->video_url;
}else{
$fixedLink = $getLink->graphql->shortcode_media->display_url;
}
echo "Post By : ";
echo $data['author_name'] ."\n";
echo "Caption : ";
echo $data['title'] ."\n\n";
// Response
echo "Link To Download Image/Video : "; echo $fixedLink."\n";
?>