Skip to content

Commit

Permalink
updated userAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
mewlabs committed Dec 12, 2018
1 parent beb8d67 commit b7f8743
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/InstagramScraper/Instagram.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Instagram
private $sessionPassword;
private $userSession;
private $rhxGis = null;
private $userAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36';
private $userAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36';

/**
* @param string $username
Expand All @@ -53,6 +53,7 @@ class Instagram
*/
public static function withCredentials($username, $password, $sessionFolder = null)
{
//$sessionFolder = static::$instanceCache ?: $sessionFolder;
if (is_null($sessionFolder)) {
$sessionFolder = __DIR__ . DIRECTORY_SEPARATOR . 'sessions' . DIRECTORY_SEPARATOR;
}
Expand Down

0 comments on commit b7f8743

Please sign in to comment.