user-instagram
Advanced tools
Comparing version 2.0.7 to 2.0.8
{ | ||
"name": "user-instagram", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "Get user data and feed content by scraping Instagram's user page. No OAuth needed.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -32,2 +32,3 @@ const axios = require("axios"); | ||
posts: user.edge_owner_to_timeline_media.edges.map(edge => { | ||
let hasCaption = edge.node.edge_media_to_caption.edges[0]; | ||
return { | ||
@@ -40,3 +41,3 @@ id: edge.node.id, | ||
isVideo: edge.node.is_video, | ||
caption: edge.node.edge_media_to_caption.edges[0].node.text, | ||
caption: hasCaption ? hasCaption.node.text : "", | ||
commentsCount: edge.node.edge_media_to_comment.count, | ||
@@ -43,0 +44,0 @@ commentsDisabled: edge.node.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
4481
77