user-instagram
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -5,3 +5,4 @@ const handle = require("./src/scrape"); | ||
* @param username { String } | ||
* @return { Promise<Object> } | ||
*/ | ||
module.exports = handle; |
{ | ||
"name": "user-instagram", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Get user data and feed content by scraping Instagram's user page. No OAuth needed.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
const axios = require("axios"); | ||
const { normalizeUrl } = require("../src/util"); | ||
/** | ||
* Gets the data from the GraphQL Instagram interface. | ||
* @param { string } username | ||
* @return { Promise<Object> } | ||
*/ | ||
module.exports = username => { | ||
@@ -30,2 +35,3 @@ return new Promise(async resolve => { | ||
shortCode: edge.node.shortcode, | ||
url: `https://www.instagram.com/p/${edge.node.shortcode}/`, | ||
dimensions: edge.node.dimensions, | ||
@@ -32,0 +38,0 @@ imageUrl: edge.node.display_url, |
@@ -9,3 +9,3 @@ module.exports = { | ||
if (!string.match(/instagram\.com\/[^\/]*/)) { | ||
string = `https://instagram.com/${string}`; | ||
string = `https://www.instagram.com/${string}`; | ||
} | ||
@@ -12,0 +12,0 @@ return string += "/?__a=1"; |
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
4288
76