9 lines
306 B
Plaintext
9 lines
306 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
PKG_URL="$(curl -s https://pypi.org/rss/packages.xml | grep -o 'https://pypi.org/project/[^ <]*' | shuf | head -n 1 | sed 's/project/simple/g')"
|
||
|
ARCHIVE_URL="$(curl -s "$PKG_URL" | grep -o 'https://[^ "#]*' | tail -n 1)"
|
||
|
TMP=pypi_$RANDOM$RANDOM
|
||
|
mkdir /tmp/$TMP/
|
||
|
cd /tmp/$TMP
|
||
|
wget "$ARCHIVE_URL"
|