1
0
Fork
You've already forked pandy
0
No description
  • Shell 100%
2024年06月26日 18:11:43 -04:00
LICENSE Added a LICENSE. 2024年06月26日 18:11:43 -04:00
pandy.sh Initial commit. 2024年06月26日 18:05:57 -04:00
README.md Initial commit. 2024年06月26日 18:05:57 -04:00

pandy

pandoc a pandoc wrapper to convert webpages to some other formats such as:

  • org-mode
  • Manpage
  • PDF
  • LaTeX

Installation

  1. Clone it.
  2. Copy the script to somewhere on your PATH such as /usr/local/bin.
  3. chmod +x it, ex:
chmod +x /usr/local/bin/pandy.sh

Usage

 usage: pandy.sh [-o] [-i] [-g] [-l] [-m] [-p] [-v] [-v] [-f filename] URL
 Pandoc wrapper that downloads a webpage from URL and converts it to another format.
 OPTIONS:
 -o convert to org-mode.
 -g convert it to Manpage (groff).
 -l convert it to LaTeX.
 -m convert it to Markdown.
 -p convert it to PDF.
 -f save output to filename.
 -h show this help.
 Example #1 - convert to PDF:
 ./pandy.sh -p -f return-of-the-sorcerer.pdf http://www.eldritchdark.com/writings/short-stories/183/the-return-of-the-sorcerer
 Example #2 - convert to Manpage format and send it to man:
 ./pandy.sh -g http://www.eldritchdark.com/writings/short-stories/183/the-return-of-the-sorcerer | man -l -