Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Parse names from the list
#!/bin/sh
fileName=$1
for c in $(cat $fileName); do
path=$(echo $c | grep '/wiki/' | sed 's/href="//' | sed 's/"//')
if [ ! -z $path ] ; then
python python_parser.py http://en.wikipedia.org$path;
fi;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment