From 89e7a8c6a227a11e5f60888e628427b934f86b94 Mon Sep 17 00:00:00 2001 From: Abed Halawi Date: Mon, 7 May 2018 15:57:23 +0300 Subject: [PATCH] update userAgent to fix #354 video_view_count is always returned as 0 in getMediasByUserId --- src/InstagramScraper/Instagram.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/InstagramScraper/Instagram.php b/src/InstagramScraper/Instagram.php index 5107de0e..dd7741af 100644 --- a/src/InstagramScraper/Instagram.php +++ b/src/InstagramScraper/Instagram.php @@ -38,7 +38,7 @@ class Instagram private $sessionPassword; private $userSession; private $rhxGis = null; - private $userAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.106 Safari/537.36'; + private $userAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36'; /** * @param string $username