markdown-this
Extract the readable content of a URL and convert it to Markdown. The package also handles GitHub repositories and Markdown files through the GitHub API, and arXiv abstract pages through their HTML representation.
Installation
uv add markdown-this
Usage
from markdown_this import extract_main_content
title, markdown, fallback_text, intro = extract_main_content(
"https://example.com/article"
)
extract_main_content returns the title, extracted Markdown, plain-text
fallback, and a short introduction suitable for a notification or preview.
The lower-level fetchers and normalization helpers are available from the package modules when an application needs more control over the pipeline.
Development
uv run pytest packages/markdown-this/tests
uv run ruff check packages/markdown-this
License
MIT
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 markdown_this-0.1.0.tar.gz.
File metadata
- Download URL: markdown_this-0.1.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e52cf019cf205ed761f71d2557933cfdd507b8e031768b29022beeb96a1773f
|
|
| MD5 |
5ae6381d381cb1b838abe265549fa90a
|
|
| BLAKE2b-256 |
4b7e9ee29b52ed9fb4f18c27dc9759bd0fd67ef9e507af2b8802c9175136f7e8
|
File details
Details for the file markdown_this-0.1.0-py3-none-any.whl.
File metadata
- Download URL: markdown_this-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbfc489c4af34d8e83e786912edf96f6bc8a4c07a9eedac6d16060be481cf3fe
|
|
| MD5 |
afc49862ff83ddff1462b1128614ce64
|
|
| BLAKE2b-256 |
89c91bd372edad266c3c033cfdf273b7326dd5b23bd0486d13bad5c630523440
|