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.1.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.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: url2epub-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 43d8f349b606f4e05431a1c2feb29f47c39bd9c7f298803b7eff8ff682140f15
MD5 7d14e1b39c3886c2a93c5d79d9585143
BLAKE2b-256 4869eaf9cab9f8941d3a0610afb1d751128791bca0011111f25765d2d80400b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: url2epub-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e8ee002ed38738b8e2d15ed238fbcfe67157b08ef0e768ac366b33a1419b3bf2
MD5 f6713ba193bf42822ac1a4eaeaa5199d
BLAKE2b-256 653cfc78be8d84dd7bfc4ba47fa6b212f4c41423f82e39326172a88d3bac9098

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