@vicociv/instaloader 0.2.0 → 0.3.1
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/LICENSE +21 -0
- package/README.md +24 -0
- package/dist/index.d.mts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +219 -199
- package/dist/index.mjs +219 -199
- package/package.json +38 -14
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @vicociv/instaloader
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@vicociv/instaloader)
|
|
4
|
+
[](https://bundlephobia.com/package/@vicociv/instaloader)
|
|
5
|
+
[](https://bundlephobia.com/package/@vicociv/instaloader)
|
|
6
|
+
[](https://bundlephobia.com/package/@vicociv/instaloader)
|
|
7
|
+
[](https://github.com/star8ks/instaloader.js/actions/workflows/ci.yml)
|
|
8
|
+
[](https://codecov.io/gh/star8ks/instaloader.js)
|
|
9
|
+
[](https://opensource.org/licenses/MIT)
|
|
10
|
+
[](https://www.typescriptlang.org/)
|
|
11
|
+
[](https://nodejs.org/)
|
|
12
|
+
|
|
3
13
|
TypeScript port of [instaloader](https://github.com/instaloader/instaloader) - Download Instagram content (posts, stories, profiles) with metadata.
|
|
4
14
|
|
|
5
15
|
## Installation
|
|
@@ -381,6 +391,20 @@ import {
|
|
|
381
391
|
} from '@vicociv/instaloader';
|
|
382
392
|
```
|
|
383
393
|
|
|
394
|
+
## TODO
|
|
395
|
+
|
|
396
|
+
- [ ] Download comments
|
|
397
|
+
- [ ] Download IGTV
|
|
398
|
+
- [ ] Download Reels
|
|
399
|
+
- [ ] Location support
|
|
400
|
+
- [ ] CLI tool
|
|
401
|
+
|
|
384
402
|
## License
|
|
385
403
|
|
|
386
404
|
MIT
|
|
405
|
+
|
|
406
|
+
## Buy Me a Coffee
|
|
407
|
+
|
|
408
|
+
If you find this project helpful, consider supporting its development:
|
|
409
|
+
|
|
410
|
+
[](https://ko-fi.com/nickyoung)
|
package/dist/index.d.mts
CHANGED
|
@@ -543,7 +543,7 @@ declare class InstaloaderContext {
|
|
|
543
543
|
readonly quiet: boolean;
|
|
544
544
|
readonly iphoneSupport: boolean;
|
|
545
545
|
readonly fatalStatusCodes: number[];
|
|
546
|
-
private
|
|
546
|
+
private _cookieStore;
|
|
547
547
|
private _csrfToken;
|
|
548
548
|
private _username;
|
|
549
549
|
private _userId;
|
|
@@ -610,7 +610,7 @@ declare class InstaloaderContext {
|
|
|
610
610
|
*/
|
|
611
611
|
updateCookies(cookies: CookieData): void;
|
|
612
612
|
/**
|
|
613
|
-
* Build cookie header string from cookie
|
|
613
|
+
* Build cookie header string from cookie store.
|
|
614
614
|
*/
|
|
615
615
|
private _getCookieHeader;
|
|
616
616
|
/**
|
|
@@ -637,9 +637,11 @@ declare class InstaloaderContext {
|
|
|
637
637
|
*/
|
|
638
638
|
graphql_query(queryHash: string, variables: JsonObject, referer?: string): Promise<JsonObject>;
|
|
639
639
|
/**
|
|
640
|
-
* Do a doc_id-based GraphQL Query
|
|
641
|
-
*
|
|
642
|
-
*
|
|
640
|
+
* Do a doc_id-based GraphQL Query.
|
|
641
|
+
*
|
|
642
|
+
* Uses GET for anonymous requests (works without login) and POST for authenticated
|
|
643
|
+
* requests. This is the correct behavior - Instagram's API accepts GET for public
|
|
644
|
+
* data but requires POST with session for authenticated operations.
|
|
643
645
|
*/
|
|
644
646
|
doc_id_graphql_query(docId: string, variables: JsonObject, referer?: string): Promise<JsonObject>;
|
|
645
647
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -543,7 +543,7 @@ declare class InstaloaderContext {
|
|
|
543
543
|
readonly quiet: boolean;
|
|
544
544
|
readonly iphoneSupport: boolean;
|
|
545
545
|
readonly fatalStatusCodes: number[];
|
|
546
|
-
private
|
|
546
|
+
private _cookieStore;
|
|
547
547
|
private _csrfToken;
|
|
548
548
|
private _username;
|
|
549
549
|
private _userId;
|
|
@@ -610,7 +610,7 @@ declare class InstaloaderContext {
|
|
|
610
610
|
*/
|
|
611
611
|
updateCookies(cookies: CookieData): void;
|
|
612
612
|
/**
|
|
613
|
-
* Build cookie header string from cookie
|
|
613
|
+
* Build cookie header string from cookie store.
|
|
614
614
|
*/
|
|
615
615
|
private _getCookieHeader;
|
|
616
616
|
/**
|
|
@@ -637,9 +637,11 @@ declare class InstaloaderContext {
|
|
|
637
637
|
*/
|
|
638
638
|
graphql_query(queryHash: string, variables: JsonObject, referer?: string): Promise<JsonObject>;
|
|
639
639
|
/**
|
|
640
|
-
* Do a doc_id-based GraphQL Query
|
|
641
|
-
*
|
|
642
|
-
*
|
|
640
|
+
* Do a doc_id-based GraphQL Query.
|
|
641
|
+
*
|
|
642
|
+
* Uses GET for anonymous requests (works without login) and POST for authenticated
|
|
643
|
+
* requests. This is the correct behavior - Instagram's API accepts GET for public
|
|
644
|
+
* data but requires POST with session for authenticated operations.
|
|
643
645
|
*/
|
|
644
646
|
doc_id_graphql_query(docId: string, variables: JsonObject, referer?: string): Promise<JsonObject>;
|
|
645
647
|
/**
|