Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

user-instagram

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

user-instagram - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

1

index.js

@@ -5,3 +5,4 @@ const handle = require("./src/scrape");

* @param username { String }
* @return { Promise<Object> }
*/
module.exports = handle;

2

package.json
{
"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";

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc