Browse Source

Add a script to download a webpage to markdown

Samuel W. Flint 2 years ago
parent
commit
a2bf8f2859
1 changed files with 9 additions and 0 deletions
  1. 9 0
      download-page-to-md

+ 9 - 0
download-page-to-md

@@ -0,0 +1,9 @@
+#!/bin/sh
+
+URL=$1
+MDFILE=$2
+
+pandoc -f html-native_spans-native_divs \
+       -t markdown+pandoc_title_bloc -s \
+       -o ${MDFILE} \
+       ${URL}