user-instagram
Advanced tools
Comparing version 2.1.2 to 2.1.3
{ | ||
"name": "user-instagram", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Get user data and feed content by scraping Instagram's user page. No OAuth needed.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -106,2 +106,3 @@ const axios = require("axios"); | ||
let media_data = GQL.data.graphql.shortcode_media; | ||
let has_caption = media_data.edge_media_to_caption.edges.length > 0; | ||
resolve({ | ||
@@ -114,3 +115,3 @@ link: REQUEST_PARAMETERS.url.replace("/?__a=1", ""), | ||
wasCaptionEdited: media_data.caption_is_edited, | ||
caption: media_data.edge_media_to_caption.edges[0].node.text, | ||
caption: has_caption? media_data.edge_media_to_caption.edges[0].node.text : null, | ||
commentsCount: media_data.edge_media_to_parent_comment.count, | ||
@@ -117,0 +118,0 @@ areCommentsDisabled: media_data.comments_disabled, |
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
11520
207