dont show links with lynx
This commit is contained in:
parent
b0f9cbc342
commit
cdda351c05
|
@ -84,7 +84,7 @@ function getcontent() { # 1=url 2=outputfile
|
|||
local outfile="$2"
|
||||
|
||||
if [[ -n $LYNX ]]; then
|
||||
curl -sL "$url" | ${LYNX} -stdin -dump -list_inline > "${outfile}"
|
||||
curl -sL "$url" | ${LYNX} -stdin -dump -nolist > "${outfile}"
|
||||
else
|
||||
curl -sL "$url" | ${SED} 's/>/>\n/g;s/</\n</g;' | awk NF | egrep -v "^<.*>$" > "${outfile}"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue