Skip to content
This repository has been archived by the owner on Jul 4, 2020. It is now read-only.

Commit

Permalink
v1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
aik27 committed Apr 7, 2018
1 parent 88d4b31 commit 6a70c24
Show file tree
Hide file tree
Showing 15 changed files with 735 additions and 778 deletions.
1 change: 0 additions & 1 deletion classes/InWidget/API/apiModel.php
Expand Up @@ -13,7 +13,6 @@
* @link http://inwidget.ru
* @copyright 2014-2018 Alexandr Kazarmshchikov
* @author Alexandr Kazarmshchikov
* @version 1.2.4
* @package inWidget\API
*
*/
Expand Down
1 change: 0 additions & 1 deletion classes/InWidget/API/apiOfficial.php
Expand Up @@ -15,7 +15,6 @@
* @link http://inwidget.ru
* @copyright 2014-2018 Alexandr Kazarmshchikov
* @author Alexandr Kazarmshchikov
* @version 1.2.4
* @package inWidget\API
*
*/
Expand Down
1 change: 0 additions & 1 deletion classes/InWidget/API/apiScraper.php
Expand Up @@ -13,7 +13,6 @@
* @link http://inwidget.ru
* @copyright 2014-2018 Alexandr Kazarmshchikov
* @author Alexandr Kazarmshchikov
* @version 1.2.4
* @package inWidget\API
*
*/
Expand Down
1 change: 0 additions & 1 deletion classes/InWidget/Core.php
Expand Up @@ -16,7 +16,6 @@
* @link http://inwidget.ru
* @copyright 2014-2018 Alexandr Kazarmshchikov
* @author Alexandr Kazarmshchikov
* @version 1.2.4
* @package inWidget
*
*/
Expand Down
1 change: 0 additions & 1 deletion classes/InWidget/Exception/inWidgetException.php
Expand Up @@ -13,7 +13,6 @@
* @link http://inwidget.ru
* @copyright 2014-2018 Alexandr Kazarmshchikov
* @author Alexandr Kazarmshchikov
* @version 1.2.4
* @package inWidget
*
*/
Expand Down
10 changes: 5 additions & 5 deletions classes/InstagramScraper/Endpoints.php
Expand Up @@ -8,11 +8,11 @@ class Endpoints
const LOGIN_URL = 'https://www.instagram.com/accounts/login/ajax/';
const ACCOUNT_PAGE = 'https://www.instagram.com/{username}';
const MEDIA_LINK = 'https://www.instagram.com/p/{code}';
const ACCOUNT_MEDIAS = 'https://instagram.com/graphql/query/?query_id=17888483320059182&id={user_id}&first=30&after={max_id}';
const ACCOUNT_MEDIAS = 'https://www.instagram.com/{username}/?__a=1&max_id={max_id}';
const ACCOUNT_JSON_INFO = 'https://www.instagram.com/{username}/?__a=1';
const MEDIA_JSON_INFO = 'https://www.instagram.com/p/{code}/?__a=1';
const MEDIA_JSON_BY_LOCATION_ID = 'https://www.instagram.com/explore/locations/{{facebookLocationId}}/?__a=1&max_id={{maxId}}';
const MEDIA_JSON_BY_TAG = 'https://www.instagram.com/graphql/query/?query_id=17882293912014529&tag_name={tag}&first=30&after={max_id}';
const MEDIA_JSON_BY_TAG = 'https://www.instagram.com/explore/tags/{tag}/?__a=1&max_id={max_id}';
const GENERAL_SEARCH = 'https://www.instagram.com/web/search/topsearch/?query={query}';
const ACCOUNT_JSON_INFO_BY_ID = 'ig_user({userId}){id,username,external_url,full_name,profile_pic_url,biography,followed_by{count},follows{count},media{count},is_private,is_verified}';
const COMMENTS_BEFORE_COMMENT_ID_BY_CODE = 'https://www.instagram.com/graphql/query/?query_id=17852405266163336&shortcode={{shortcode}}&first={{count}}&after={{commentId}}';
Expand Down Expand Up @@ -49,10 +49,10 @@ public static function getAccountJsonInfoLinkByAccountId($id)
return str_replace('{userId}', urlencode($id), static::ACCOUNT_JSON_INFO_BY_ID);
}

public static function getAccountMediasJsonLink($userId, $maxId = '')
public static function getAccountMediasJsonLink($username, $maxId = '')
{
$url = str_replace('{user_id}', urlencode($userId), static::ACCOUNT_MEDIAS);
return str_replace('{max_id}', urlencode($maxId), $url);
$url = str_replace('{username}', urlencode($username), static::ACCOUNT_MEDIAS);
return str_replace('{max_id}', urlencode($maxId), $url);
}

public static function getMediaPageLink($code)
Expand Down

0 comments on commit 6a70c24

Please sign in to comment.