You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
|
|
|
|
if which curl &>/dev/null; then
|
|
|
|
httpfetcher="curl -s"
|
|
|
|
elif which wget &>/dev/null; then
|
|
|
|
httpfetcher="wget -q -O - "
|
|
|
|
else
|
|
|
|
echo "Neither curl nor wget installed!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
eval $httpfetcher "http://localhost:$port/yacysearch.rss?query=$1&resource=local&verify=false" | grep link | grep -v opensearchdescription | grep -v yacysearch | grep -v 'yacy:item' | sed 's/<link>//' | sed 's/<\/link>//'
|