CCCPaste

Random User Profile with Photo

#Random User info with Photos
#https://randomuser.me/
#https://randomuser.me/documentation#howto

#Get a Random user profile
wget -qO- "https://randomuser.me/api"

#request multiple profiles
wget "https://randomuser.me/api/?results=50" -qO-

#Get 50 random profile photos
wget "https://randomuser.me/api/?results=50" -qO-|jq .|grep large|cut -d\" -f4

#filter results
wget "https://randomuser.me/api/?gender=female"


#more with jq
wget "https://randomuser.me/api/?results=2" -qO-|jq '.results|keys'

wget "https://randomuser.me/api/?results=2" -qO-|jq '.results[].gender' 
wget "https://randomuser.me/api/?results=2" -qO-|jq '.results[0].gender'
wget "https://randomuser.me/api/?results=2" -qO-|jq '.results[1].gender'

wget "https://randomuser.me/api/?results=2" -qO-|jq '.results[].picture'
wget "https://randomuser.me/api/?results=2" -qO-|jq '.results[].picture|keys'
wget "https://randomuser.me/api/?results=2" -qO-|jq '.results[].picture.large'

wget "https://randomuser.me/api/?results=2" -qO-|jq '.results[]|(.name.first,.picture.large)'

#fitler results
wget "https://randomuser.me/api/?results=20" -qO-|jq '.results[]|select(.gender=="female")'
wget "https://randomuser.me/api/?results=20" -qO-|jq '.results[]|select(.gender=="female")|(.picture.large)'