Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- for i in `lynx --source https://pypi.python.org/simple |grep href | cut -d'>' -f2 | cut -d'<' -f1`; do
- echo https://pypi.python.org/simple/$i;
- mkdir $i;
- cd $i;
- for a in `lynx --source "https://pypi.python.org/simple/$i" |grep href | sed 's/.*a href="\(.*\)" rel=.*/\1/'`; do
- echo "Baixando https://pypi.python.org/simple/$i/$a ..."
- wget -A "gz,zip" -c "https://pypi.python.org/simple/$i/$a"
- done
- cd ..
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement