linkfetch 0.1.1__tar.gz → 0.1.2__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.
- {linkfetch-0.1.1 → linkfetch-0.1.2}/PKG-INFO +4 -3
- {linkfetch-0.1.1 → linkfetch-0.1.2}/README.md +3 -2
- {linkfetch-0.1.1 → linkfetch-0.1.2}/pyproject.toml +1 -1
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/capture/browser.py +15 -6
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/cli.py +14 -1
- {linkfetch-0.1.1 → linkfetch-0.1.2}/uv.lock +1 -1
- {linkfetch-0.1.1 → linkfetch-0.1.2}/.github/workflows/release.yml +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/.github/workflows/test.yml +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/.gitignore +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/LICENSE +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/config.toml +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/docs/superpowers/specs/2026-06-15-linkfetch-design.md +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/__init__.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/capture/__init__.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/capture/expand.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/config.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/emit.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/models.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/parse/__init__.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/parse/awards.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/parse/basics.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/parse/certifications.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/parse/common.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/parse/courses.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/parse/education.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/parse/experience.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/parse/honors.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/parse/languages.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/parse/patents.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/parse/projects.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/parse/recommendations.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/parse/skills.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/parse/volunteering.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/sections.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/src/linkfetch/text.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/conftest.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/fixtures/basics.html +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/fixtures/certifications.html +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/fixtures/education.html +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/fixtures/experience.html +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/fixtures/honors.html +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/fixtures/languages.html +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/fixtures/patents.html +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/fixtures/projects.html +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/fixtures/recommendations.html +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/fixtures/skills.html +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/fixtures/volunteering.html +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/test_capture_retry.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/test_config.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/test_emit.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/test_experience.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/test_release.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/test_sections.py +0 -0
- {linkfetch-0.1.1 → linkfetch-0.1.2}/tests/test_text.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: linkfetch
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Capture your own LinkedIn profile on your own computer and turn it into structured profile files
|
|
5
5
|
Project-URL: Homepage, https://github.com/Prosperis/linkfetch
|
|
6
6
|
Project-URL: Issues, https://github.com/Prosperis/linkfetch/issues
|
|
@@ -66,7 +66,7 @@ You need Python 3.10 or newer and [uv](https://docs.astral.sh/uv/) (or
|
|
|
66
66
|
```bash
|
|
67
67
|
uv tool install linkfetch # or: pipx install linkfetch
|
|
68
68
|
linkfetch doctor # shows where data is kept and whether Playwright and a login exist
|
|
69
|
-
|
|
69
|
+
linkfetch install-browser # one-time download of the browser linkfetch drives (~150 MB)
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
## Use
|
|
@@ -113,6 +113,7 @@ Delete the folder to remove everything linkfetch stored.
|
|
|
113
113
|
|
|
114
114
|
| Command | What it does |
|
|
115
115
|
|---|---|
|
|
116
|
+
| `linkfetch install-browser` | Download the browser linkfetch drives (one time, and again if an upgrade asks) |
|
|
116
117
|
| `linkfetch doctor` | Show the data folders and check Playwright and your login |
|
|
117
118
|
| `linkfetch login` | Open a browser window to log in to LinkedIn once |
|
|
118
119
|
| `linkfetch capture --vanity <you>` | Save your profile pages (needs the browser) |
|
|
@@ -150,7 +151,7 @@ achievements are what tailoring selects from.
|
|
|
150
151
|
git clone https://github.com/Prosperis/linkfetch
|
|
151
152
|
cd linkfetch
|
|
152
153
|
uv venv && uv pip install -e ".[dev]"
|
|
153
|
-
|
|
154
|
+
uv run linkfetch install-browser
|
|
154
155
|
uv run pytest
|
|
155
156
|
```
|
|
156
157
|
|
|
@@ -32,7 +32,7 @@ You need Python 3.10 or newer and [uv](https://docs.astral.sh/uv/) (or
|
|
|
32
32
|
```bash
|
|
33
33
|
uv tool install linkfetch # or: pipx install linkfetch
|
|
34
34
|
linkfetch doctor # shows where data is kept and whether Playwright and a login exist
|
|
35
|
-
|
|
35
|
+
linkfetch install-browser # one-time download of the browser linkfetch drives (~150 MB)
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
## Use
|
|
@@ -79,6 +79,7 @@ Delete the folder to remove everything linkfetch stored.
|
|
|
79
79
|
|
|
80
80
|
| Command | What it does |
|
|
81
81
|
|---|---|
|
|
82
|
+
| `linkfetch install-browser` | Download the browser linkfetch drives (one time, and again if an upgrade asks) |
|
|
82
83
|
| `linkfetch doctor` | Show the data folders and check Playwright and your login |
|
|
83
84
|
| `linkfetch login` | Open a browser window to log in to LinkedIn once |
|
|
84
85
|
| `linkfetch capture --vanity <you>` | Save your profile pages (needs the browser) |
|
|
@@ -116,7 +117,7 @@ achievements are what tailoring selects from.
|
|
|
116
117
|
git clone https://github.com/Prosperis/linkfetch
|
|
117
118
|
cd linkfetch
|
|
118
119
|
uv venv && uv pip install -e ".[dev]"
|
|
119
|
-
|
|
120
|
+
uv run linkfetch install-browser
|
|
120
121
|
uv run pytest
|
|
121
122
|
```
|
|
122
123
|
|
|
@@ -19,8 +19,12 @@ from linkfetch.config import Config
|
|
|
19
19
|
|
|
20
20
|
_PLAYWRIGHT_HINT = (
|
|
21
21
|
"Playwright is required to capture from LinkedIn but is not installed.\n"
|
|
22
|
-
"
|
|
23
|
-
|
|
22
|
+
"Reinstall linkfetch (Playwright is a dependency): uv tool install --force linkfetch"
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
_BROWSER_HINT = (
|
|
26
|
+
"The browser linkfetch drives is not downloaded yet (or Playwright was updated).\n"
|
|
27
|
+
"Run: linkfetch install-browser"
|
|
24
28
|
)
|
|
25
29
|
|
|
26
30
|
|
|
@@ -43,10 +47,15 @@ def browser_session(cfg: Config):
|
|
|
43
47
|
sync_playwright = _require_playwright()
|
|
44
48
|
cfg.user_data_dir.mkdir(parents=True, exist_ok=True)
|
|
45
49
|
with sync_playwright() as p:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
try:
|
|
51
|
+
context = p.chromium.launch_persistent_context(
|
|
52
|
+
user_data_dir=str(cfg.user_data_dir),
|
|
53
|
+
headless=cfg.browser.headless,
|
|
54
|
+
)
|
|
55
|
+
except Exception as exc:
|
|
56
|
+
if "executable doesn't exist" in str(exc).lower():
|
|
57
|
+
raise CaptureError(_BROWSER_HINT) from None
|
|
58
|
+
raise
|
|
50
59
|
try:
|
|
51
60
|
page = context.pages[0] if context.pages else context.new_page()
|
|
52
61
|
yield Session(cfg, context, page)
|
|
@@ -79,7 +79,7 @@ def doctor() -> None:
|
|
|
79
79
|
else:
|
|
80
80
|
console.print(
|
|
81
81
|
"[yellow]![/] Playwright not installed — capture/login unavailable.\n"
|
|
82
|
-
" Reinstall linkfetch (Playwright is a dependency), then run:
|
|
82
|
+
" Reinstall linkfetch (Playwright is a dependency), then run: linkfetch install-browser"
|
|
83
83
|
)
|
|
84
84
|
|
|
85
85
|
has_session = cfg.user_data_dir.exists() and any(cfg.user_data_dir.iterdir())
|
|
@@ -96,6 +96,19 @@ def doctor() -> None:
|
|
|
96
96
|
# ----------------------------------------------------------------------------
|
|
97
97
|
|
|
98
98
|
|
|
99
|
+
@app.command("install-browser")
|
|
100
|
+
def install_browser() -> None:
|
|
101
|
+
"""Download the Chromium build linkfetch drives (one time, ~150 MB)."""
|
|
102
|
+
import subprocess
|
|
103
|
+
|
|
104
|
+
# Run Playwright through linkfetch's own Python: an installed tool
|
|
105
|
+
# (uv tool / pipx) exposes only the `linkfetch` command, not `playwright`.
|
|
106
|
+
result = subprocess.run([sys.executable, "-m", "playwright", "install", "chromium"])
|
|
107
|
+
if result.returncode != 0:
|
|
108
|
+
_fail("The browser download failed. Check your connection and run it again.")
|
|
109
|
+
console.print("[green]✓[/] Browser ready. Next: linkfetch login")
|
|
110
|
+
|
|
111
|
+
|
|
99
112
|
@app.command()
|
|
100
113
|
def login() -> None:
|
|
101
114
|
"""Open a browser window so you can log in to LinkedIn once."""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|