scraper-instagram
Advanced tools
Comparing version 1.0.16 to 1.0.17
19
index.js
@@ -41,7 +41,7 @@ 'use strict'; | ||
return reject(401); | ||
case insta + 'challenge/?next=/accounts/edit/%253F__a%253D1': | ||
return reject(409); | ||
default: | ||
console.log(res.headers.location); | ||
default: { | ||
if(res.headers.location.startsWith(insta + 'challenge/?next=')) | ||
return reject(409); | ||
reject(res.statusCode); | ||
} | ||
} | ||
@@ -162,3 +162,3 @@ break; | ||
timestamp: post['taken_at_timestamp'], | ||
link: insta + shortcode | ||
link: insta + 'p/' + shortcode | ||
} | ||
@@ -342,3 +342,3 @@ } | ||
precomposed_overlay: false | ||
}, queryHashs.story, this.sessionId).then(data => resolve({ | ||
}, queryHashs.story, this.sessionId).then(data => resolve(data['reels_media'][0] ? { | ||
unread: data['reels_media'][0]['latest_reel_media'] !== data['reels_media'][0]['seen'], | ||
@@ -357,5 +357,8 @@ author: { | ||
timestamp: item['taken_at_timestamp'], | ||
expirationTimestamp: item['expiring_at_timestamp'] | ||
expirationTimestamp: item['expiring_at_timestamp'], | ||
...(item['story_cta_url'] ? { | ||
externalLink: item['story_cta_url'] | ||
} : {}) | ||
})) | ||
})).catch(reject)).catch(reject); | ||
} : null)).catch(reject)).catch(reject); | ||
}); | ||
@@ -362,0 +365,0 @@ } |
{ | ||
"name": "scraper-instagram", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"description": "Instagram scraper without authenticated API", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -185,2 +185,4 @@ # ig-scraper | ||
*Those methods will return `null` when a profile has no story.* | ||
Note : calling this method will not mark the story as read. | ||
@@ -568,2 +570,16 @@ | ||
- Improved `401` detection | ||
- Restored full post `shortcode` property | ||
- Restored full post `shortcode` property | ||
* `1.0.17` (2021-01-2?) | ||
- Fixed error on empty profile story | ||
- Fixed `409` detection | ||
- Added profile story external link | ||
* `2.0.0` (202?-??-??) | ||
- Refactored names | ||
- Refactored scopes | ||
- Refactored promises | ||
- Refactored errors | ||
- Refactored indents | ||
- Renamed `getLocation` to `getLocationById` | ||
- Reverse subscribe methods `post` & `error` parameters | ||
- Improved unit tests coverage | ||
- Added JSDoc |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60247
734
583