Skip to main content

WSWS Markdown

CI Publish to PyPI

A tool to convert articles from the World Socialist Web Site to Markdown format.

Why not a generic URL-to-Markdown tool?

Generic converters guess at the main content block, so they often leak WSWS site chrome (share icons, newsletter widgets, "Read more" blocks) into the output or strip real content by mistake. This tool targets WSWS's actual markup (itemprop="articleBody", /en/authors/ links, <time datetime>) for exact extraction and frontmatter, at the cost of being tied to WSWS's current template.

Install

pip install wsws-md

Usage

wswsmd "https://www.wsws.org/en/articles/2026/07/03/coeq-j03.html"

Prints the article as Markdown (with YAML frontmatter containing title, author, date, description and source URL) to stdout. Use -o FILE / --output FILE to write to a file instead:

wswsmd "https://www.wsws.org/en/articles/2026/07/03/coeq-j03.html" -o article.md

Use --no-frontmatter to omit the YAML header and print just the title, byline and body:

wswsmd "https://www.wsws.org/en/articles/2026/07/03/coeq-j03.html" --no-frontmatter

Use --no-links to strip hyperlinks from the body text, keeping only the link text (useful when feeding the article into another tool that doesn't need the cross-links):

wswsmd "https://www.wsws.org/en/articles/2026/07/03/coeq-j03.html" --no-links

Use -q/--quiet to suppress non-error diagnostic output, or -v/--verbose to print fetch/parse diagnostics to stderr:

wswsmd "https://www.wsws.org/en/articles/2026/07/03/coeq-j03.html" --verbose

Claude Skill

This repo also ships a Claude Skill that wraps the CLI so Claude can convert WSWS articles to Markdown directly. Download the packaged wsws-md-skill-*.zip from the Releases page and upload it as a Skill in Claude.ai.

Development

pip install -e ".[test]"
pytest

Pull request titles must follow Conventional Commits — see CONTRIBUTING.md. Releases are automated with release-please.

Metadata

Release files for wsws-md 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wsws-md 0.3.0
File Size Uploaded Provenance Actions
wsws_md-0.3.0.tar.gz 9.7 kB With provenance Details for wsws_md-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wsws-md 0.3.0
File Interpreter ABI Platform Actions
wsws_md-0.3.0-py3-none-any.whl Python 3 none any Details for wsws_md-0.3.0-py3-none-any.whl

Total release size: 17.2 kB

Release files / wsws_md-0.3.0.tar.gz

Download URL wsws_md-0.3.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a1b90ff077b47e9bb201f2d061c3f9037b23cd8fc5092411acc2cf4b6248b4f5
BLAKE2b-256 checksum
How to use checksums
b7be5c507a08b3969bfd81818b2eb04788f92165e4465b8992a2627304b5e2b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release files / wsws_md-0.3.0-py3-none-any.whl

Download URL wsws_md-0.3.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f34b12f99e1105e5a2891b8e92a47ed0b702a915fa417fc164f694f7c67fdcc7
BLAKE2b-256 checksum
How to use checksums
e61d48da52c09fba0a11caba48bcdef8b6c72cf03c562d3c10198fa32d8c4add
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Security for wsws-md 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wsws_md-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page