ig-dlp 0.1.0__tar.gz

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.
ig_dlp-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) [2026] [Henry Schneider]
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.
ig_dlp-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,89 @@
1
+ Metadata-Version: 2.4
2
+ Name: ig-dlp
3
+ Version: 0.1.0
4
+ Summary: A terminal UI clipboard monitor to automatically download Instagram posts and reels.
5
+ Author-email: Henry Schneider <support@henryschneider.es>
6
+ License: MIT
7
+ Keywords: instagram,downloader,clipboard,tui,cli
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.8
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: instaloader>=4.10
15
+ Requires-Dist: pyperclip>=1.8.2
16
+ Requires-Dist: rich>=13.0.0
17
+ Dynamic: license-file
18
+
19
+ # ig-dlp
20
+
21
+ **ig-dlp** is a lightweight Terminal UI (TUI) clipboard monitor that automatically detects copied Instagram post or reel links and downloads them instantly into a local `output/` directory.
22
+
23
+ ---
24
+
25
+ ## Features
26
+
27
+ * **Real-time Clipboard Monitoring:** Seamlessly watches your system clipboard for Instagram URLs (`/p/`, `/reel/`, `/tv/`).
28
+ * **Interactive TUI Dashboard:** Powered by `rich`, providing a clean live status display showing the current state, last copied URL, and recent download history.
29
+ * **Automatic Local Storage:** Organizes downloaded media, metadata, and captions directly into an `output/` folder where you launch the application.
30
+ * **Graceful Control:** Press `q` followed by `Enter` at any time to exit the application cleanly.
31
+
32
+ ---
33
+
34
+ ## Installation
35
+
36
+ You can install `ig-dlp` directly from PyPI:
37
+
38
+ ```bash
39
+ pip install ig-dlp
40
+
41
+ ```
42
+
43
+ ### Manual Installation (From Source)
44
+
45
+ If you are cloning the repository locally:
46
+
47
+ ```bash
48
+ git clone https://github.com/yourusername/ig-dlp.git
49
+ cd ig-dlp
50
+ pip install .
51
+
52
+ ```
53
+
54
+ ---
55
+
56
+ ## Usage
57
+
58
+ 1. Launch the TUI in your terminal:
59
+ ```bash
60
+ ig-dlp
61
+
62
+ ```
63
+
64
+
65
+ 2. Browse Instagram normally in your web browser.
66
+ 3. Copy any post or reel link (`Ctrl+C` or `Cmd+C`).
67
+ 4. The application will automatically detect the link, fetch the media via `instaloader`, and save it to your `./output` folder!
68
+ 5. Type **`q`** and press **`Enter`** to exit.
69
+
70
+ ---
71
+
72
+ ## Requirements
73
+
74
+ * Python 3.8 or higher
75
+ * [instaloader](https://github.com/instaloader/instaloader)
76
+ * [pyperclip](https://github.com/asweigart/pyperclip)
77
+ * [rich](https://github.com/Textualize/rich)
78
+
79
+ ---
80
+
81
+ ## Author
82
+
83
+ * **Henry Schneider** — [support@henryschneider.es](mailto:support@henryschneider.es)
84
+
85
+ ---
86
+
87
+ ## License
88
+
89
+ This project is licensed under the [MIT License](https://www.google.com/search?q=MIT LICENSE).
ig_dlp-0.1.0/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # ig-dlp
2
+
3
+ **ig-dlp** is a lightweight Terminal UI (TUI) clipboard monitor that automatically detects copied Instagram post or reel links and downloads them instantly into a local `output/` directory.
4
+
5
+ ---
6
+
7
+ ## Features
8
+
9
+ * **Real-time Clipboard Monitoring:** Seamlessly watches your system clipboard for Instagram URLs (`/p/`, `/reel/`, `/tv/`).
10
+ * **Interactive TUI Dashboard:** Powered by `rich`, providing a clean live status display showing the current state, last copied URL, and recent download history.
11
+ * **Automatic Local Storage:** Organizes downloaded media, metadata, and captions directly into an `output/` folder where you launch the application.
12
+ * **Graceful Control:** Press `q` followed by `Enter` at any time to exit the application cleanly.
13
+
14
+ ---
15
+
16
+ ## Installation
17
+
18
+ You can install `ig-dlp` directly from PyPI:
19
+
20
+ ```bash
21
+ pip install ig-dlp
22
+
23
+ ```
24
+
25
+ ### Manual Installation (From Source)
26
+
27
+ If you are cloning the repository locally:
28
+
29
+ ```bash
30
+ git clone https://github.com/yourusername/ig-dlp.git
31
+ cd ig-dlp
32
+ pip install .
33
+
34
+ ```
35
+
36
+ ---
37
+
38
+ ## Usage
39
+
40
+ 1. Launch the TUI in your terminal:
41
+ ```bash
42
+ ig-dlp
43
+
44
+ ```
45
+
46
+
47
+ 2. Browse Instagram normally in your web browser.
48
+ 3. Copy any post or reel link (`Ctrl+C` or `Cmd+C`).
49
+ 4. The application will automatically detect the link, fetch the media via `instaloader`, and save it to your `./output` folder!
50
+ 5. Type **`q`** and press **`Enter`** to exit.
51
+
52
+ ---
53
+
54
+ ## Requirements
55
+
56
+ * Python 3.8 or higher
57
+ * [instaloader](https://github.com/instaloader/instaloader)
58
+ * [pyperclip](https://github.com/asweigart/pyperclip)
59
+ * [rich](https://github.com/Textualize/rich)
60
+
61
+ ---
62
+
63
+ ## Author
64
+
65
+ * **Henry Schneider** — [support@henryschneider.es](mailto:support@henryschneider.es)
66
+
67
+ ---
68
+
69
+ ## License
70
+
71
+ This project is licensed under the [MIT License](https://www.google.com/search?q=MIT LICENSE).
@@ -0,0 +1,31 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "ig-dlp"
7
+ version = "0.1.0"
8
+ description = "A terminal UI clipboard monitor to automatically download Instagram posts and reels."
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ license = { text = "MIT" }
12
+ authors = [
13
+ { name = "Henry Schneider", email = "support@henryschneider.es" }
14
+ ]
15
+ keywords = ["instagram", "downloader", "clipboard", "tui", "cli"]
16
+ classifiers = [
17
+ "Programming Language :: Python :: 3",
18
+ "License :: OSI Approved :: MIT License",
19
+ "Operating System :: OS Independent",
20
+ ]
21
+ dependencies = [
22
+ "instaloader>=4.10",
23
+ "pyperclip>=1.8.2",
24
+ "rich>=13.0.0",
25
+ ]
26
+
27
+ [project.scripts]
28
+ ig-dlp = "ig_dlp.app:main"
29
+
30
+ [tool.setuptools.packages.find]
31
+ where = ["src"]
ig_dlp-0.1.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ __version__ = "0.1.0"
2
+
3
+ from .app import main
@@ -0,0 +1,132 @@
1
+ import os
2
+ import re
3
+ import threading
4
+ import time
5
+ import pyperclip
6
+ import instaloader
7
+ from rich.console import Console
8
+ from rich.panel import Panel
9
+ from rich.live import Live
10
+ from rich.layout import Layout
11
+ from rich.text import Text
12
+
13
+ console = Console()
14
+ loader = instaloader.Instaloader()
15
+
16
+ # Application state tracking
17
+ state = "Waiting..."
18
+ current_url = "None"
19
+ download_status = "Idle"
20
+ history = []
21
+ running = True
22
+
23
+ def listen_for_quit():
24
+ """Background thread to listen for 'q' to quit gracefully."""
25
+ global running
26
+ while running:
27
+ try:
28
+ line = input()
29
+ if line.strip().lower() == 'q':
30
+ running = False
31
+ break
32
+ except EOFError:
33
+ break
34
+
35
+ def generate_layout():
36
+ """Constructs the responsive TUI dashboard layout."""
37
+ layout = Layout()
38
+
39
+ header = Panel(
40
+ Text("📸 INSTAGRAM CLIPBOARD DOWNLOADER (Press 'q' + Enter to quit)", style="bold magenta", justify="center"),
41
+ style="cyan"
42
+ )
43
+
44
+ status_text = Text()
45
+ status_text.append(f"Status: ", style="bold")
46
+ status_text.append(f"{state}\n", style="yellow" if "Downloading" in state else ("green" if "Downloaded" in state else "dim"))
47
+ status_text.append(f"Last URL: ", style="bold")
48
+ status_text.append(f"{current_url}\n", style="blue")
49
+ status_text.append(f"Progress: ", style="bold")
50
+ status_text.append(f"{download_status}", style="cyan")
51
+
52
+ body = Panel(status_text, title="Live Status", border_style="green")
53
+
54
+ history_content = "\n".join(history[-5:]) if history else "No downloads yet in this session."
55
+ footer = Panel(history_content, title="Recent History", border_style="dim")
56
+
57
+ layout.split_column(
58
+ Layout(header, size=3),
59
+ Layout(body, size=7),
60
+ Layout(footer)
61
+ )
62
+ return layout
63
+
64
+ def main():
65
+ global state, current_url, download_status, history, running
66
+ recent_value = ""
67
+
68
+ # Start quit listener thread
69
+ quit_thread = threading.Thread(target=listen_for_quit, daemon=True)
70
+ quit_thread.start()
71
+
72
+ with Live(generate_layout(), refresh_per_second=4, screen=False) as live:
73
+ while running:
74
+ try:
75
+ clipboard_text = pyperclip.paste().strip()
76
+
77
+ if clipboard_text != recent_value:
78
+ recent_value = clipboard_text
79
+ match = re.search(r"instagram\.com\/(?:p|reel|tv)\/([^\/?#]+)", clipboard_text)
80
+
81
+ if match and running:
82
+ shortcode = match.group(1)
83
+ current_url = clipboard_text
84
+
85
+ # State: Found
86
+ state = "Found!"
87
+ download_status = f"Target acquired: {shortcode}"
88
+ live.update(generate_layout())
89
+ time.sleep(0.5)
90
+
91
+ # State: Downloading
92
+ state = "Downloading..."
93
+ download_status = "Fetching media via Instaloader..."
94
+ live.update(generate_layout())
95
+
96
+ # Execute download
97
+ post = instaloader.Post.from_shortcode(loader.context, shortcode)
98
+ loader.download_post(post, target=shortcode)
99
+
100
+ # Extract account handle
101
+ account_name = post.owner_username
102
+
103
+ # State: Downloaded
104
+ state = "Downloaded!"
105
+ download_status = f"Successfully saved {shortcode}"
106
+ history.append(f"[✓] {shortcode} (@{account_name}) - Saved successfully")
107
+ live.update(generate_layout())
108
+
109
+ time.sleep(2)
110
+ state = "Waiting..."
111
+ download_status = "Idle"
112
+ live.update(generate_layout())
113
+
114
+ except Exception as e:
115
+ if not running:
116
+ break
117
+ state = "Error"
118
+ download_status = str(e)[:45]
119
+ live.update(generate_layout())
120
+ time.sleep(2)
121
+ state = "Waiting..."
122
+ download_status = "Idle"
123
+
124
+ time.sleep(1)
125
+
126
+ console.print("\n[bold red]Exiting application. Goodbye![/bold red]")
127
+
128
+ if __name__ == "__main__":
129
+ try:
130
+ main()
131
+ except KeyboardInterrupt:
132
+ console.print("\n[bold red]Exiting application. Goodbye![/bold red]")
@@ -0,0 +1,89 @@
1
+ Metadata-Version: 2.4
2
+ Name: ig-dlp
3
+ Version: 0.1.0
4
+ Summary: A terminal UI clipboard monitor to automatically download Instagram posts and reels.
5
+ Author-email: Henry Schneider <support@henryschneider.es>
6
+ License: MIT
7
+ Keywords: instagram,downloader,clipboard,tui,cli
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.8
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: instaloader>=4.10
15
+ Requires-Dist: pyperclip>=1.8.2
16
+ Requires-Dist: rich>=13.0.0
17
+ Dynamic: license-file
18
+
19
+ # ig-dlp
20
+
21
+ **ig-dlp** is a lightweight Terminal UI (TUI) clipboard monitor that automatically detects copied Instagram post or reel links and downloads them instantly into a local `output/` directory.
22
+
23
+ ---
24
+
25
+ ## Features
26
+
27
+ * **Real-time Clipboard Monitoring:** Seamlessly watches your system clipboard for Instagram URLs (`/p/`, `/reel/`, `/tv/`).
28
+ * **Interactive TUI Dashboard:** Powered by `rich`, providing a clean live status display showing the current state, last copied URL, and recent download history.
29
+ * **Automatic Local Storage:** Organizes downloaded media, metadata, and captions directly into an `output/` folder where you launch the application.
30
+ * **Graceful Control:** Press `q` followed by `Enter` at any time to exit the application cleanly.
31
+
32
+ ---
33
+
34
+ ## Installation
35
+
36
+ You can install `ig-dlp` directly from PyPI:
37
+
38
+ ```bash
39
+ pip install ig-dlp
40
+
41
+ ```
42
+
43
+ ### Manual Installation (From Source)
44
+
45
+ If you are cloning the repository locally:
46
+
47
+ ```bash
48
+ git clone https://github.com/yourusername/ig-dlp.git
49
+ cd ig-dlp
50
+ pip install .
51
+
52
+ ```
53
+
54
+ ---
55
+
56
+ ## Usage
57
+
58
+ 1. Launch the TUI in your terminal:
59
+ ```bash
60
+ ig-dlp
61
+
62
+ ```
63
+
64
+
65
+ 2. Browse Instagram normally in your web browser.
66
+ 3. Copy any post or reel link (`Ctrl+C` or `Cmd+C`).
67
+ 4. The application will automatically detect the link, fetch the media via `instaloader`, and save it to your `./output` folder!
68
+ 5. Type **`q`** and press **`Enter`** to exit.
69
+
70
+ ---
71
+
72
+ ## Requirements
73
+
74
+ * Python 3.8 or higher
75
+ * [instaloader](https://github.com/instaloader/instaloader)
76
+ * [pyperclip](https://github.com/asweigart/pyperclip)
77
+ * [rich](https://github.com/Textualize/rich)
78
+
79
+ ---
80
+
81
+ ## Author
82
+
83
+ * **Henry Schneider** — [support@henryschneider.es](mailto:support@henryschneider.es)
84
+
85
+ ---
86
+
87
+ ## License
88
+
89
+ This project is licensed under the [MIT License](https://www.google.com/search?q=MIT LICENSE).
@@ -0,0 +1,11 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/ig_dlp/__init__.py
5
+ src/ig_dlp/app.py
6
+ src/ig_dlp.egg-info/PKG-INFO
7
+ src/ig_dlp.egg-info/SOURCES.txt
8
+ src/ig_dlp.egg-info/dependency_links.txt
9
+ src/ig_dlp.egg-info/entry_points.txt
10
+ src/ig_dlp.egg-info/requires.txt
11
+ src/ig_dlp.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ ig-dlp = ig_dlp.app:main
@@ -0,0 +1,3 @@
1
+ instaloader>=4.10
2
+ pyperclip>=1.8.2
3
+ rich>=13.0.0
@@ -0,0 +1 @@
1
+ ig_dlp