Skip to main content

A CLI program to convert an URL to an epub using Readability & Pandoc.

Project description

url2epub

A CLI program to convert an URL to an epub using Readability & Pandoc.

Uses:

  • Readability : Removes all the menu/footers/header you don't want to read anyway.
  • Pandoc : Converts to epub/epub3 formats.
  • Request : Retrieve webpage.

installation

Needs the following python packages:

readability-lxml
pandoc
requests

recommended installation is via pipx

pipx install -r requirement.txt

usage

Download a page (filename auto-determined from title page)

url2epub.py myverygoodwebsite.com/article

Download a page to a specific filename

url2epub.py myverygoodwebsite.com/article --outfile my_file.epub

Save to epub3 format

url2epub.py myverygoodwebsite.com/article --epub3

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

url2epub-1.0.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

url2epub-1.0.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file url2epub-1.0.2.tar.gz.

File metadata

  • Download URL: url2epub-1.0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for url2epub-1.0.2.tar.gz
Algorithm Hash digest
SHA256 acd312bdc993a2bfad2ff999607c40294af8ac3d9db14cbc0ba1882c2cc2259e
MD5 4007822663325967763648924469f1a5
BLAKE2b-256 2118529fd240243bd57d2ef279f0066a338a9aa9417246f1357111114786bf83

See more details on using hashes here.

File details

Details for the file url2epub-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: url2epub-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for url2epub-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e02717b45e19a617bdc3c2ab8c4c24f0386bb1f08dd619743775995b428ab9d0
MD5 f42e64c329c7522d4e6c279efecd5156
BLAKE2b-256 e65df364c7d4336a441918b16e180662163ff668f12e6fd711723217fa2097c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page