@auscera/socialscrape 2.0.1 → 2.0.2
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 +10 -10
- package/engine/README.md +11 -9
- package/engine/handlers.py +4 -4
- package/engine/socialscrape_cli.py +1 -1
- package/engine/ui.py +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,24 +33,24 @@
|
|
|
33
33
|
|
|
34
34
|
## Quick Install & Run
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
```sh
|
|
39
|
-
pnpm dlx @auscera/socialscrape
|
|
40
|
-
# Or with npm:
|
|
41
|
-
npx @auscera/socialscrape
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Or install globally with either package manager:
|
|
36
|
+
Install the `socialscrape` CLI globally with a single command (no repository clone required):
|
|
45
37
|
|
|
46
38
|
```sh
|
|
47
39
|
pnpm add -g @auscera/socialscrape
|
|
48
40
|
# Or with npm:
|
|
49
41
|
npm install -g @auscera/socialscrape
|
|
50
42
|
|
|
43
|
+
# Launch from any terminal
|
|
51
44
|
socialscrape
|
|
52
45
|
```
|
|
53
46
|
|
|
47
|
+
Or run once without installing globally:
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
pnpm dlx @auscera/socialscrape
|
|
51
|
+
# Or: npx @auscera/socialscrape
|
|
52
|
+
```
|
|
53
|
+
|
|
54
54
|
Useful maintenance flags:
|
|
55
55
|
- `socialscrape --setup` — explicitly prepare or repair the isolated Python runtime
|
|
56
56
|
- `socialscrape --version` — print the installed launcher version without triggering runtime setup
|
|
@@ -93,7 +93,7 @@ flowchart LR
|
|
|
93
93
|
|
|
94
94
|
```text
|
|
95
95
|
global socialscrape command
|
|
96
|
-
└── ~/.socialscrape/runtime/2.0.
|
|
96
|
+
└── ~/.socialscrape/runtime/2.0.2/
|
|
97
97
|
├── engine/ allowlisted Python source, plugins, and agent SKILL.md manifests
|
|
98
98
|
└── venv/ isolated Python dependencies
|
|
99
99
|
```
|
package/engine/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
</p>
|
|
13
13
|
|
|
14
14
|
<p align="center">
|
|
15
|
-
<img src="https://img.shields.io/badge/version-2.0.
|
|
15
|
+
<img src="https://img.shields.io/badge/version-2.0.2-E1306C?style=flat-square" alt="Version">
|
|
16
16
|
<img src="https://img.shields.io/badge/python-3.11+-833AB4?style=flat-square" alt="Python">
|
|
17
17
|
<img src="https://img.shields.io/badge/architecture-Hub--and--Spoke-F56040?style=flat-square" alt="Architecture">
|
|
18
18
|
<img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="License">
|
|
@@ -53,15 +53,17 @@ git --version # Must report git version 2.x or higher
|
|
|
53
53
|
### Option A: Zero-Clone npm / pnpm CLI (Recommended for End Users)
|
|
54
54
|
Requires **Node.js 20+** and **Python 3.9+** (`venv` support):
|
|
55
55
|
```bash
|
|
56
|
-
|
|
56
|
+
# Install globally
|
|
57
|
+
pnpm add -g @auscera/socialscrape
|
|
57
58
|
# Or with npm:
|
|
58
|
-
|
|
59
|
+
npm install -g @auscera/socialscrape
|
|
59
60
|
|
|
60
|
-
#
|
|
61
|
-
|
|
62
|
-
# Or: npm install -g @auscera/socialscrape
|
|
61
|
+
# Launch from any terminal
|
|
62
|
+
socialscrape
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
+
*(Prefer a one-off run without installing globally? Run `pnpm dlx @auscera/socialscrape` or `npx @auscera/socialscrape`.)*
|
|
66
|
+
|
|
65
67
|
### Option B: Python `pip` Install (Direct / Maintainer)
|
|
66
68
|
```bash
|
|
67
69
|
# Recommended (Guaranteed cross-platform & avoids Windows PATH/launcher conflicts):
|
|
@@ -99,7 +101,7 @@ A fundamental architectural requirement of the PPA Framework is **strict decoupl
|
|
|
99
101
|
- `pip` installs executable Python packages strictly into Python's internal `site-packages/` directory.
|
|
100
102
|
- All downloaded videos, transcripts, scraped posts, comments, API keys (`.env`), and session logs are stored strictly in your OS user data/config directories (`platformdirs`, e.g. `<data_dir>/Outputs/`).
|
|
101
103
|
2. **Zero Data Loss During Updates**:
|
|
102
|
-
- When a user updates the tool via `python -m pip install --upgrade git+https://github.com/delightc123/social-scrape.git` or the internal `/update` command, `pip` strictly upgrades the codebase in `site-packages/`. It **NEVER touches, overwrites, or deletes** existing files in `<data_dir>/Outputs/`.
|
|
104
|
+
- When a user updates the tool via `python -m pip install --upgrade "git+https://github.com/delightc123/social-scrape.git#subdirectory=apps/PPA"` or the internal `/update` command, `pip` strictly upgrades the codebase in `site-packages/`. It **NEVER touches, overwrites, or deletes** existing files in `<data_dir>/Outputs/`.
|
|
103
105
|
3. **Non-Destructive Bootstrapping**:
|
|
104
106
|
- Storage bootstrapping uses safe directory creation (`exist_ok=True`). Existing user directories, configurations, and downloaded media are preserved. The bootstrapper only synchronizes documentation manifests (`<data_dir>/SKILL.md` and `<data_dir>/skills/`), keeping agent tool schemas fresh while leaving user datasets intact.
|
|
105
107
|
|
|
@@ -134,7 +136,7 @@ To pull the latest scrapers, platform fixes, and features without touching your
|
|
|
134
136
|
- **Inside the TUI**: Simply type `/update` at the prompt.
|
|
135
137
|
- **Via Command Line**:
|
|
136
138
|
```bash
|
|
137
|
-
python -m pip install --upgrade git+https://github.com/delightc123/social-scrape.git
|
|
139
|
+
python -m pip install --upgrade "git+https://github.com/delightc123/social-scrape.git#subdirectory=apps/PPA"
|
|
138
140
|
```
|
|
139
141
|
|
|
140
142
|
---
|
|
@@ -147,7 +149,7 @@ Typing `socialscrape` launches a full-screen, clean terminal canvas with auto-co
|
|
|
147
149
|
█▀▀█ █▀▀█ █▀▀▀ █ █▀▀█ █ █▀▀█ █▀▀▀ █▀▀▄ █▀▀█ █▀▀█ █▀▀█
|
|
148
150
|
▀▀▀▄ █ █ █ █ █▀▀█ █ ▀▀▀▄ █ █▀▀▄ █▀▀█ █▀▀▀ █▀▀
|
|
149
151
|
█▄▄█ ▀▀▀▀ ▀▀▀▀ ▀ ▀ ▀ ▀▀▀▀ █▄▄█ ▀▀▀▀ ▀ ▀ ▀ ▀ ▀ ▀▀▀▀
|
|
150
|
-
v2.0.
|
|
152
|
+
v2.0.2
|
|
151
153
|
|
|
152
154
|
/youtube run youtube scraper ctrl+x y
|
|
153
155
|
/instagram run instagram scraper ctrl+x i
|
package/engine/handlers.py
CHANGED
|
@@ -492,7 +492,7 @@ def handle_fix_command() -> None:
|
|
|
492
492
|
# 3. SESSION MANAGEMENT HANDLERS
|
|
493
493
|
# ==============================================================================
|
|
494
494
|
|
|
495
|
-
def handle_new_command(version: str = "2.0.
|
|
495
|
+
def handle_new_command(version: str = "2.0.2") -> None:
|
|
496
496
|
"""Starts a fresh new chat session without needing to restart the terminal."""
|
|
497
497
|
session_id = init_new_chat_session()
|
|
498
498
|
display_home_screen(version=version)
|
|
@@ -504,7 +504,7 @@ def handle_history_command() -> None:
|
|
|
504
504
|
open_chat_history_viewer(get_conversation_history(), get_openrouter_model())
|
|
505
505
|
|
|
506
506
|
|
|
507
|
-
def handle_clear_command(version: str = "2.0.
|
|
507
|
+
def handle_clear_command(version: str = "2.0.2") -> None:
|
|
508
508
|
"""Clears all conversation messages for the current session and purges mouse modes."""
|
|
509
509
|
set_conversation_history([])
|
|
510
510
|
save_chat_session()
|
|
@@ -513,7 +513,7 @@ def handle_clear_command(version: str = "2.0.1") -> None:
|
|
|
513
513
|
render_action_card("[dim]🧹 Cleared chat history for active session.[/dim]")
|
|
514
514
|
|
|
515
515
|
|
|
516
|
-
def handle_resume_command(version: str = "2.0.
|
|
516
|
+
def handle_resume_command(version: str = "2.0.2") -> None:
|
|
517
517
|
"""
|
|
518
518
|
Renders an interactive session picker modal allowing the user to select
|
|
519
519
|
and resume a previously saved chat session from chats/.
|
|
@@ -741,7 +741,7 @@ def handle_update_command() -> None:
|
|
|
741
741
|
update_target = (
|
|
742
742
|
custom_update_url
|
|
743
743
|
or str(load_config().get("update_url", "")).strip()
|
|
744
|
-
or "git+https://github.com/delightc123/social-scrape.git"
|
|
744
|
+
or "git+https://github.com/delightc123/social-scrape.git#subdirectory=apps/PPA"
|
|
745
745
|
)
|
|
746
746
|
console.print("[cyan]Upgrading SocialScrape via pip...[/cyan]")
|
|
747
747
|
res = subprocess.run([sys.executable, "-m", "pip", "install", "--upgrade", update_target], capture_output=True, text=True)
|
|
@@ -19,7 +19,7 @@ from prompt_toolkit.history import FileHistory
|
|
|
19
19
|
from prompt_toolkit.document import Document
|
|
20
20
|
from prompt_toolkit.key_binding import KeyBindings
|
|
21
21
|
|
|
22
|
-
__version__ = "2.0.
|
|
22
|
+
__version__ = "2.0.2"
|
|
23
23
|
|
|
24
24
|
# Ensure package directory is prioritized in sys.path and conflicting modules evicted
|
|
25
25
|
_PACKAGE_DIR = str(Path(__file__).parent.resolve())
|
package/engine/ui.py
CHANGED
|
@@ -148,7 +148,7 @@ COMMAND_CATALOG = [
|
|
|
148
148
|
# 2. BANNER & PRESENTATION HELPERS
|
|
149
149
|
# ==============================================================================
|
|
150
150
|
|
|
151
|
-
def render_opencode_banner(version: str = "2.0.
|
|
151
|
+
def render_opencode_banner(version: str = "2.0.2") -> Text:
|
|
152
152
|
"""Renders the OpenCode-exact block glyph banner with clean muted/bright contrast."""
|
|
153
153
|
banner = Text()
|
|
154
154
|
total_width = len(SOCIAL_LEFT[0]) + 1 + len(SCRAPE_RIGHT[0])
|
|
@@ -206,7 +206,7 @@ def get_active_plugins(plugins_dir: Optional[Path] = None) -> List[Dict[str, Any
|
|
|
206
206
|
return discovered
|
|
207
207
|
|
|
208
208
|
|
|
209
|
-
def display_home_screen(version: str = "2.0.
|
|
209
|
+
def display_home_screen(version: str = "2.0.2") -> None:
|
|
210
210
|
"""Renders the clean, minimal OpenCode-identical home screen."""
|
|
211
211
|
reset_terminal_mouse_mode()
|
|
212
212
|
console.clear()
|