Is there a script parsing the number of followers on instagram?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
66 views
Tell me how is possible using php to put the number of subscribers of the specified profile in instagram.
Maybe there is a ready script for this

Tried using curl did not work, does not display the number
<?php$url = 'https://www.instagram.com/arina_ramina/';$curl = curl_init();$options = [CURLOPT_URL            => $url CURLOPT_RETURNTRANSFER => true, THIS => false, CURLOPT_CONNECTTIMEOUT => 20, CURLOPT_TIMEOUT => 20, CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0', CURLOPT_REFERER => 'https://www.instagram.com/', ]; curl_setopt_array($curl, $options); $html = curl_exec($curl); curl_close($curl); //subscribers preg_match('#"edge_followed_by": {"count": (\\d{1,10})}#isu',$html, $finded); $followers = $finded[1]; echo 'Subscribers: '.$followers; ?>
by | 66 views

2 Answers

0 like 0 dislike
There is a library for working with Instagram for PHP, it is possible.
\rhttps://github.com/mgp25/Instagram-API
The link you will find a library, there is described the installation process and usage examples
by
0 like 0 dislike
The regular season all correct and will output
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users