properly pulling the URL

master
Fabien Benetou 13 years ago
parent 3bc6bbb330
commit 4f0b5f5dab
  1. 4
      shell_scripts/pmwiki_social_search

@ -14,9 +14,7 @@ QUERY="?action=search&q=fmt%3D%23simple+"
KEYWORD=$1
URList=("http://nicolas.bigand.free.fr/pmwiki/index.php5" "http://notes.franck-brignoli.fr/")
# all Pmwiki instances
# can be found via curl "http://self/wiki/?action=search&q=pimtype+fmt=%23simple" | awk /wikisearch/,/searchinfostart/ | grep wikilink | sed "s/.*href='\(.*\)'.*/\1/" | sort | uniq
# still requires to get the value of the pim PTV
# curl "http://self/wiki/?action=search&q=pimtype+fmt=%23simple" | awk /wikisearch/,/searchinfostart/ | grep wikilink | sed "s/.*href='\(.*\)'.*/\1/" | sort | uniq | xargs curl | grep "pim:" | sed "s/.*href='\(.*\)' title=.*/\1/"
for URL in "${URList[@]}"
# this should be limited to people with expertize in the topic
do

Loading…
Cancel
Save