instagram-archiver 0.2.1__py3-none-any.whl → 0.3.0__py3-none-any.whl
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.
Potentially problematic release.
This version of instagram-archiver might be problematic. Click here for more details.
- instagram_archiver/__init__.py +8 -2
- instagram_archiver/__main__.py +4 -1
- instagram_archiver/client.py +219 -261
- instagram_archiver/constants.py +51 -95
- instagram_archiver/main.py +73 -57
- instagram_archiver/profile_scraper.py +194 -0
- instagram_archiver/saved_scraper.py +78 -0
- instagram_archiver/typing.py +170 -0
- instagram_archiver/utils.py +97 -79
- instagram_archiver-0.3.0.dist-info/LICENSE.txt +18 -0
- instagram_archiver-0.3.0.dist-info/METADATA +119 -0
- instagram_archiver-0.3.0.dist-info/RECORD +15 -0
- {instagram_archiver-0.2.1.dist-info → instagram_archiver-0.3.0.dist-info}/WHEEL +1 -1
- instagram_archiver-0.3.0.dist-info/entry_points.txt +4 -0
- instagram_archiver/find_query_hashes.py +0 -31
- instagram_archiver/ig_typing.py +0 -173
- instagram_archiver-0.2.1.dist-info/LICENSE.txt +0 -21
- instagram_archiver-0.2.1.dist-info/METADATA +0 -44
- instagram_archiver-0.2.1.dist-info/RECORD +0 -14
- instagram_archiver-0.2.1.dist-info/entry_points.txt +0 -3
instagram_archiver/ig_typing.py
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
# pylint: disable=unused-private-member
|
|
2
|
-
from typing import Any, Literal, Sequence, TypedDict
|
|
3
|
-
|
|
4
|
-
from typing_extensions import NotRequired
|
|
5
|
-
|
|
6
|
-
__all__ = ('BrowserName', 'CarouselMedia', 'Comments', 'Edge', 'EdgeMediaToComment',
|
|
7
|
-
'EdgeOwnerToTimelineMedia', 'EdgeOwnerToTimelineMediaPageInfo', 'EdgeSidecarToChildren',
|
|
8
|
-
'GraphImageNode', 'GraphNodeOwner', 'GraphSidecarNode', 'GraphVideoNode',
|
|
9
|
-
'GraphVideoNodeVideoDimensions', 'HasID', 'HighlightItem', 'HighlightsTray', 'MediaInfo',
|
|
10
|
-
'MediaInfoItem', 'MediaInfoItemImageVersions2', 'MediaInfoItemImageVersions2Candidate',
|
|
11
|
-
'MediaInfoItemVideoVersion', 'UserInfo', 'WebProfileInfo', 'WebProfileInfoData')
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class MediaInfoItemVideoVersion(TypedDict):
|
|
15
|
-
height: int
|
|
16
|
-
url: str
|
|
17
|
-
width: int
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class MediaInfoItemImageVersions2Candidate(TypedDict):
|
|
21
|
-
height: int
|
|
22
|
-
url: str
|
|
23
|
-
width: int
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class HighlightItem(TypedDict):
|
|
27
|
-
id: str
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class HighlightsTray(TypedDict):
|
|
31
|
-
tray: Sequence[HighlightItem]
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
class EdgeOwnerToTimelineMediaPageInfo(TypedDict):
|
|
35
|
-
end_cursor: str
|
|
36
|
-
has_next_page: bool
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
class EdgeOwnerToTimelineMedia(TypedDict):
|
|
40
|
-
edges: Sequence['Edge']
|
|
41
|
-
page_info: EdgeOwnerToTimelineMediaPageInfo
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
class UserInfo(TypedDict):
|
|
45
|
-
edge_owner_to_timeline_media: EdgeOwnerToTimelineMedia
|
|
46
|
-
id: str
|
|
47
|
-
profile_pic_url_hd: str
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
class MediaInfoItemImageVersions2(TypedDict):
|
|
51
|
-
candidates: Sequence[MediaInfoItemImageVersions2Candidate]
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
class CarouselMedia(TypedDict):
|
|
55
|
-
image_versions2: MediaInfoItemImageVersions2
|
|
56
|
-
id: str
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
class HasID(TypedDict):
|
|
60
|
-
id: str
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
class MediaInfoItem(TypedDict):
|
|
64
|
-
carousel_media: NotRequired[list[CarouselMedia]]
|
|
65
|
-
image_versions2: MediaInfoItemImageVersions2
|
|
66
|
-
id: str
|
|
67
|
-
taken_at: int
|
|
68
|
-
user: HasID
|
|
69
|
-
video_dash_manifest: str
|
|
70
|
-
video_duration: float
|
|
71
|
-
video_versions: Sequence[MediaInfoItemVideoVersion]
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
class EdgeSidecarToChildren(TypedDict):
|
|
75
|
-
edges: Sequence['Edge']
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
class EdgeMediaToComment(TypedDict):
|
|
79
|
-
count: int
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
class Comments(TypedDict):
|
|
83
|
-
can_view_more_preview_comments: bool
|
|
84
|
-
comments: list[HasID]
|
|
85
|
-
next_min_id: str
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
class MediaInfo(TypedDict):
|
|
89
|
-
more_available: bool
|
|
90
|
-
num_results: int
|
|
91
|
-
items: Sequence[MediaInfoItem]
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
class GraphSidecarNode(TypedDict):
|
|
95
|
-
__typename: Literal['GraphSidecar']
|
|
96
|
-
comments_disabled: bool
|
|
97
|
-
edge_media_to_comment: EdgeMediaToComment
|
|
98
|
-
edge_sidecar_to_children: EdgeSidecarToChildren
|
|
99
|
-
id: str
|
|
100
|
-
shortcode: NotRequired[str]
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
class GraphVideoNodeVideoDimensions(TypedDict):
|
|
104
|
-
height: int
|
|
105
|
-
width: int
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
class GraphNodeOwner(TypedDict):
|
|
109
|
-
id: str
|
|
110
|
-
username: str
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
class GraphVideoNode(TypedDict):
|
|
114
|
-
__typename: Literal['GraphVideo']
|
|
115
|
-
accessibility_caption: Any
|
|
116
|
-
clips_music_attribution_info: NotRequired[Any]
|
|
117
|
-
coauthor_producers: Sequence[Any]
|
|
118
|
-
comments_disabled: bool
|
|
119
|
-
dash_info: Any
|
|
120
|
-
dimensions: GraphVideoNodeVideoDimensions
|
|
121
|
-
display_url: str
|
|
122
|
-
edge_liked_by: EdgeMediaToComment
|
|
123
|
-
edge_media_caption: Any
|
|
124
|
-
edge_media_preview_like: EdgeMediaToComment
|
|
125
|
-
edge_media_to_comment: EdgeMediaToComment
|
|
126
|
-
edge_media_to_tagged_user: Any
|
|
127
|
-
fact_check_information: Any
|
|
128
|
-
fact_check_overall_rating: Any
|
|
129
|
-
felix_profile_grid_crop: Any
|
|
130
|
-
gating_info: Any
|
|
131
|
-
has_audio: bool
|
|
132
|
-
has_upcoming_event: bool
|
|
133
|
-
id: str
|
|
134
|
-
is_video: Literal[True]
|
|
135
|
-
location: Any
|
|
136
|
-
media_overlay_info: Any
|
|
137
|
-
media_preview: Any
|
|
138
|
-
nft_asset_info: Any
|
|
139
|
-
owner: GraphNodeOwner
|
|
140
|
-
pinned_for_users: Sequence[Any]
|
|
141
|
-
product_type: str
|
|
142
|
-
sharing_friction_info: Any
|
|
143
|
-
shortcode: NotRequired[str]
|
|
144
|
-
taken_at_timestamp: int
|
|
145
|
-
thumbnail_resources: Sequence[Any]
|
|
146
|
-
thumbnail_src: str
|
|
147
|
-
tracking_token: str
|
|
148
|
-
video_url: str
|
|
149
|
-
video_view_count: int
|
|
150
|
-
viewer_can_reshare: bool
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
class GraphImageNode(TypedDict):
|
|
154
|
-
__typename: Literal['GraphImage']
|
|
155
|
-
id: str
|
|
156
|
-
shortcode: NotRequired[str]
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
class Edge(TypedDict):
|
|
160
|
-
node: GraphSidecarNode | GraphImageNode | GraphVideoNode
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
class WebProfileInfoData(TypedDict):
|
|
164
|
-
user: UserInfo
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
class WebProfileInfo(TypedDict):
|
|
168
|
-
data: WebProfileInfoData
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
#: Possible browsers to use for cookies.
|
|
172
|
-
BrowserName = Literal['brave', 'chrome', 'chromium', 'edge', 'firefox', 'opera', 'safari',
|
|
173
|
-
'vivaldi']
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 Andrew Udvare
|
|
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
|
|
13
|
-
all 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
|
|
21
|
-
THE SOFTWARE.
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: instagram-archiver
|
|
3
|
-
Version: 0.2.1
|
|
4
|
-
Summary: Archive Instagram content.
|
|
5
|
-
License: MIT
|
|
6
|
-
Author: Andrew Udvare
|
|
7
|
-
Author-email: audvare@gmail.com
|
|
8
|
-
Requires-Python: >=3.10,<4
|
|
9
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
-
Requires-Dist: beautifulsoup4 (>=4.12.2,<5.0.0)
|
|
14
|
-
Requires-Dist: click (>=8.0,<8.1.4)
|
|
15
|
-
Requires-Dist: html5lib (>=1.1,<2.0)
|
|
16
|
-
Requires-Dist: loguru (>=0.6.0,<0.7.0)
|
|
17
|
-
Requires-Dist: mutagen (>=1.46.0,<2.0.0)
|
|
18
|
-
Requires-Dist: ratelimit (>=2.2.1,<3.0.0)
|
|
19
|
-
Requires-Dist: requests (>=2.28.2,<3.0.0)
|
|
20
|
-
Requires-Dist: typing-extensions (>=4.7.1,<5.0.0)
|
|
21
|
-
Requires-Dist: yt-dlp (>=2023.6.22,<2024.0.0)
|
|
22
|
-
Description-Content-Type: text/markdown
|
|
23
|
-
|
|
24
|
-
# Instagram Archiver
|
|
25
|
-
|
|
26
|
-
[](https://github.com/Tatsh/instagram-archiver/actions/workflows/qa.yml)
|
|
27
|
-
|
|
28
|
-
Tool to download data from an Instagram profile you have access to. It downloads the images, videos,
|
|
29
|
-
and related metadata (stored as JSON files).
|
|
30
|
-
|
|
31
|
-
## Installation
|
|
32
|
-
|
|
33
|
-
```shell
|
|
34
|
-
pip install instagram-archiver
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## Usage
|
|
38
|
-
|
|
39
|
-
```shell
|
|
40
|
-
ia USERNAME
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
If you like to see output, pass `--debug`.
|
|
44
|
-
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
instagram_archiver/__init__.py,sha256=VopgyDKDRFDd9dERlukht7kYjKDs_W-WoJwSTI2YAL4,80
|
|
2
|
-
instagram_archiver/__main__.py,sha256=0l4bicZ5SlFatZtsRSsrt4LdeqR3gZQk9m_bUpFrje8,73
|
|
3
|
-
instagram_archiver/client.py,sha256=7wp0Z2tY8W9Wqn7GNlwb_LRRXXmOIQL25gzkam7CqoU,13948
|
|
4
|
-
instagram_archiver/constants.py,sha256=3fosEtsawjq4TiNV9rXj7o4b3LsR2o4uyrZRa_a92pc,3691
|
|
5
|
-
instagram_archiver/find_query_hashes.py,sha256=tFLHxFZKx8yQ7hQ8zedb-mf9ew0XGD2XazJiDvbeGz0,1186
|
|
6
|
-
instagram_archiver/ig_typing.py,sha256=z-uQGxxUz2hLznzgcPIp5wPtObkTUS179q4kWS5mTJA,4265
|
|
7
|
-
instagram_archiver/main.py,sha256=I96fDvv4qD2DBu3GW6FoLEwDMdS1HWk5_hoIKNP4OAU,3067
|
|
8
|
-
instagram_archiver/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
instagram_archiver/utils.py,sha256=HJc6AwJYGHlBVoBemox9KV6gUy-cDH58n-YewFiFzC0,3646
|
|
10
|
-
instagram_archiver-0.2.1.dist-info/LICENSE.txt,sha256=qAUCPLGklRH097Pa_MaOO8ayD9q2OKRFqqVs2LrBsWg,1080
|
|
11
|
-
instagram_archiver-0.2.1.dist-info/METADATA,sha256=7b2BQxECL78tWFBz0FGtX8wuRe7VGWQKyv7Q_Xu2L4Y,1285
|
|
12
|
-
instagram_archiver-0.2.1.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
|
13
|
-
instagram_archiver-0.2.1.dist-info/entry_points.txt,sha256=xGtJPyHGjtzMucWOV28xkEeS8inw9zgF0SdQltBUu_w,60
|
|
14
|
-
instagram_archiver-0.2.1.dist-info/RECORD,,
|