instagram-stories
Advanced tools
Comparing version 1.1.1 to 1.1.2
13
index.js
@@ -67,1 +67,14 @@ const fetch = require('isomorphic-fetch') | ||
) | ||
exports.getMediaByLocation = ({ | ||
id, | ||
sessionid, | ||
userid, | ||
headers = defaultHeaders | ||
}) => ( | ||
fetch(`https://www.instagram.com/explore/locations/${id}/?__a=1`, { | ||
headers: getHeaders(headers, sessionid, userid) | ||
}) | ||
.then(res => res.json()) | ||
.then(({graphql}) => graphql) | ||
) |
{ | ||
"name": "instagram-stories", | ||
"version": "1.1.1", | ||
"description": "Instagram Stories", | ||
"version": "1.1.2", | ||
"description": "Unofficial package for scraping instagram stories", | ||
"license": "MIT", | ||
"repository": "jlobos/instagram-stories", | ||
"author": "Jesus Lobos <jlobitu@gmail.com> (https://jlobos.com/)", | ||
"author": "Jesus Lobos <jlobitu@gmail.com>", | ||
"main": "index.js", | ||
@@ -9,0 +9,0 @@ "scripts": { |
@@ -5,2 +5,3 @@ # instagram-stories | ||
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) | ||
[![Gitter](https://camo.githubusercontent.com/e5749889f0ddb3458befeee4f3fcac67e73ba76d4fc3aa4cbcc91c8085a34369/68747470733a2f2f6261646765732e6769747465722e696d2f6f682d6d792d706f73682f4c6f6262792e737667)](https://gitter.im/instagram-stories) | ||
@@ -45,2 +46,6 @@ Get the Instagram Stories in Node.js | ||
}) | ||
getMediaByLocation({ id: '292188415', userid: 1284161654, sessionid: '' }).then(({ location }) => { | ||
console.log(location.name) | ||
}) | ||
``` | ||
@@ -47,0 +52,0 @@ |
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
5169
72
54
5