CLI tool to fetch and save web content as Markdown files using Jina Reader API. Handles authentication and provides rich terminal output.
Project description
JinaFetch
A CLI tool to fetch web content and save it as Markdown using Jina Reader API.
Features
- 🚀 Fast web content conversion to Markdown
- 🔑 Secure API key management via
.env - 🎨 Rich terminal output with success/error formatting
- 📂 Automatic filename generation with fallback
Installation
pipx install jinafetch # Recommended
# or
pip install jinafetch
Usage
Basic fetching
jinafetch fetch https://example.com
Specify output file
jinafetch fetch https://example.com --output my_document.md
Environment Configuration
- Create a
.envfile in your project directory:
JINA_API_KEY=your_api_key_here
Error Handling
Common error scenarios include:
- 🔒 Missing API key
- 🌐 Network errors
- 💾 File write permissions
- 🔗 Invalid URLs
Errors display clear messages in red with details.
Requirements
- Python 3.12+
- Valid Jina Reader API key
📝 Note: Requires valid authentication via Jina Reader API
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jinafetch-0.1.0.tar.gz.
File metadata
- Download URL: jinafetch-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6bf30347890e3497f2e0da808d487ab0085f5161e76905f5ac4fe456ab2c05d
|
|
| MD5 |
940051be01fca629a14218284fd85698
|
|
| BLAKE2b-256 |
5b8643d8ce29bee7304977e840313ee3f1976331e3f612124ebb9d467198553c
|
File details
Details for the file jinafetch-0.1.0-py3-none-any.whl.
File metadata
- Download URL: jinafetch-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
220f89416528a0e4092c91b0a904f2688c102fba5784e9998b37bcc7ef3d9d03
|
|
| MD5 |
c9e20a1ea25d8bbd39fc77e107f64d7e
|
|
| BLAKE2b-256 |
688c9549aa2ed8769c606c844055f15dc9c4cf7b0ebf87564d9861501ef5487e
|