public-instagram
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -51,9 +51,10 @@ var | ||
it('Testing type of return object', async () => { | ||
comments = await Instagram.media.comments('BP-rXUGBPJa', 1000) | ||
it('Testing type and length of return object', async () => { | ||
const comments = await Instagram.media.comments('BP-rXUGBPJa', 500) | ||
Expect(comments).to.be.an('array'); | ||
Expect(comments).to.have.lengthOf(500); | ||
}); | ||
it('Testing schema of return object', async () => { | ||
comments = await Instagram.media.comments('BP-rXUGBPJa', 1000) | ||
const comments = await Instagram.media.comments('BP-rXUGBPJa', 500) | ||
Expect(comments[0]).to.be.jsonSchema({ | ||
@@ -60,0 +61,0 @@ type: 'object', |
@@ -12,3 +12,3 @@ var | ||
it('Testing schema of return object', async () => { | ||
var info = await Instagram.tags.info('instagram'); | ||
const info = await Instagram.tags.info('instagram'); | ||
Expect(info).to.be.jsonSchema({ | ||
@@ -32,9 +32,9 @@ type: 'object', | ||
it('Testing type and length of return object', async () => { | ||
posts = await Instagram.tags.recent('instagram', 1000); | ||
const posts = await Instagram.tags.recent('instagram', 500); | ||
Expect(posts).to.be.an('array'); | ||
Expect(posts).to.have.lengthOf(1000); | ||
Expect(posts).to.have.lengthOf(500); | ||
}); | ||
it('Testing schema of return object', async () => { | ||
posts = await Instagram.tags.recent('instagram', 500); | ||
const posts = await Instagram.tags.recent('instagram', 500); | ||
Expect(posts[0]).to.be.jsonSchema({ | ||
@@ -58,3 +58,3 @@ type: 'object', | ||
it('Testing type of return object', async () => { | ||
hashtags = await Instagram.tags.search('hpow'); | ||
const hashtags = await Instagram.tags.search('hpow'); | ||
Expect(hashtags).to.be.an('array'); | ||
@@ -64,3 +64,3 @@ }); | ||
it('Testing schema of return object', async () => { | ||
hashtags = await Instagram.tags.search('hpow'); | ||
const hashtags = await Instagram.tags.search('hpow'); | ||
Expect(hashtags[0]).to.be.jsonSchema({ | ||
@@ -67,0 +67,0 @@ type: 'object', |
{ | ||
"name": "public-instagram", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Tool to fetch Instagram's public content.", | ||
@@ -32,3 +32,3 @@ "main": "index.js", | ||
"bluebird": "^3.5.0", | ||
"puppeteer": "^0.9.0" | ||
"puppeteer": "^0.11.0" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
@@ -19,3 +19,3 @@ # public-instagram | ||
``` | ||
```bash | ||
npm i public-instagram | ||
@@ -26,3 +26,3 @@ ``` | ||
``` | ||
```bash | ||
npm i https://github.com/ivolimasilva/public-instagram.git | ||
@@ -33,4 +33,4 @@ ``` | ||
``` | ||
var instagram = require('public-instagram'); | ||
```js | ||
import instagram from 'public-instagram'; | ||
@@ -41,6 +41,6 @@ // Async function in order to use await | ||
// Get information about hashtag | ||
var info = await instagram.tags.info('instagram'); | ||
const info = await instagram.tags.info('instagram'); | ||
console.log(info); | ||
// Get recent posts that contain an hashtag | ||
// Get the 1000 most recent posts that contain an hashtag | ||
const posts = await instagram.tags.recent('instagram', 1000); | ||
@@ -57,2 +57,6 @@ console.log(posts.length); | ||
// Get the 1000 most recent comments of that post | ||
const comments = await instagram.media.comments('BP-rXUGBPJa', 1000); | ||
console.log(comments); | ||
// Get information about a public user | ||
@@ -81,2 +85,2 @@ const user = await instagram.users.info('instagram'); | ||
GPL-3.0 | ||
GPL-3.0 |
66570
811
81
+ Addedagent-base@4.3.0(transitive)
+ Addeddebug@3.2.7(transitive)
+ Addedes6-promise@4.2.8(transitive)
+ Addedes6-promisify@5.0.0(transitive)
+ Addedhttps-proxy-agent@2.2.4(transitive)
+ Addedms@2.1.3(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
+ Addedpuppeteer@0.11.0(transitive)
- Removedpuppeteer@0.9.0(transitive)
Updatedpuppeteer@^0.11.0