metascraper-instagram 5.29.3 → 5.29.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -8
- package/index.js +2 -4
- package/package.json +6 -15
package/README.md
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
> Metascraper integration for Instagram
|
|
1
|
+
<div align="center">
|
|
2
|
+
<br>
|
|
3
|
+
<img style="width: 500px; margin:3rem 0 1.5rem;" src="https://metascraper.js.org/static/logo-banner.png" alt="metascraper">
|
|
4
|
+
<br>
|
|
5
|
+
<br>
|
|
6
|
+
<p align="center"><strong>metascraper-instagram</strong>: Metascraper integration for Instagram.</p>
|
|
7
|
+
<p align="center">See our <a href="https://metascraper.js.org" target='_blank' rel='noopener noreferrer'>website</a> for more information.</p>
|
|
8
|
+
<br>
|
|
9
|
+
</div>
|
|
7
10
|
|
|
8
11
|
## Install
|
|
9
12
|
|
|
@@ -13,7 +16,7 @@ $ npm install metascraper-instagram --save
|
|
|
13
16
|
|
|
14
17
|
## License
|
|
15
18
|
|
|
16
|
-
**metascraper-instagram** © [Microlink](https://microlink.io),
|
|
19
|
+
**metascraper-instagram** © [Microlink](https://microlink.io), released under the [MIT](https://github.com/microlinkhq/metascraper/blob/master/LICENSE.md) License.<br>
|
|
17
20
|
Authored and maintained by [Microlink](https://microlink.io) with help from [contributors](https://github.com/microlinkhq/metascraper/contributors).
|
|
18
21
|
|
|
19
|
-
> [microlink.io](https://microlink.io) · GitHub [
|
|
22
|
+
> [microlink.io](https://microlink.io) · GitHub [microlinkhq](https://github.com/microlinkhq) · Twitter [@microlinkhq](https://twitter.com/microlinkhq)
|
package/index.js
CHANGED
|
@@ -5,9 +5,7 @@ const { getDomainWithoutSuffix } = require('tldts')
|
|
|
5
5
|
const { JSDOM, VirtualConsole } = require('jsdom')
|
|
6
6
|
const { keys, first, get } = require('lodash')
|
|
7
7
|
|
|
8
|
-
const
|
|
9
|
-
url => getDomainWithoutSuffix(url) === 'instagram'
|
|
10
|
-
)
|
|
8
|
+
const test = memoizeOne(url => getDomainWithoutSuffix(url) === 'instagram')
|
|
11
9
|
|
|
12
10
|
const getPage = sharedData => first(keys(get(sharedData, 'entry_data')))
|
|
13
11
|
|
|
@@ -79,7 +77,7 @@ module.exports = () => {
|
|
|
79
77
|
publisher: () => 'Instagram'
|
|
80
78
|
}
|
|
81
79
|
|
|
82
|
-
rules.test = ({ url }) =>
|
|
80
|
+
rules.test = ({ url }) => test(url)
|
|
83
81
|
|
|
84
82
|
return rules
|
|
85
83
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "metascraper-instagram",
|
|
3
3
|
"description": "Metascraper integration for Instagram",
|
|
4
4
|
"homepage": "https://nicedoc.io/microlinkhq/metascraper/packages/metascraper-instagram",
|
|
5
|
-
"version": "5.29.
|
|
5
|
+
"version": "5.29.7",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "hello@microlink.io",
|
|
@@ -22,14 +22,13 @@
|
|
|
22
22
|
"telegram"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@metascraper/helpers": "^5.29.
|
|
25
|
+
"@metascraper/helpers": "^5.29.7",
|
|
26
26
|
"jsdom": "~19.0.0",
|
|
27
27
|
"lodash": "~4.17.21",
|
|
28
|
-
"tldts": "~5.7.
|
|
28
|
+
"tldts": "~5.7.80"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"
|
|
32
|
-
"snap-shot": "latest"
|
|
31
|
+
"ava": "latest"
|
|
33
32
|
},
|
|
34
33
|
"engines": {
|
|
35
34
|
"node": ">= 12"
|
|
@@ -38,16 +37,8 @@
|
|
|
38
37
|
"index.js"
|
|
39
38
|
],
|
|
40
39
|
"scripts": {
|
|
41
|
-
"test": "NODE_PATH=.. TZ=UTC
|
|
40
|
+
"test": "NODE_PATH=.. TZ=UTC ava --timeout 15s"
|
|
42
41
|
},
|
|
43
42
|
"license": "MIT",
|
|
44
|
-
"
|
|
45
|
-
"bail": true,
|
|
46
|
-
"exit": true,
|
|
47
|
-
"recursive": true,
|
|
48
|
-
"reporter": "spec",
|
|
49
|
-
"slow": 300,
|
|
50
|
-
"timeout": "120000"
|
|
51
|
-
},
|
|
52
|
-
"gitHead": "e3d5ef5add6fec690b1234e6aaa273e1a658c256"
|
|
43
|
+
"gitHead": "78434709c910cca5d8df3871c0b06131cce5df45"
|
|
53
44
|
}
|