Skip to content

Instantly share code, notes, and snippets.

@laiso

laiso/CodePiece.sh

Last active Sep 11, 2020
Embed
What would you like to do?
findlist.bash #CodePiece
#!/bin/sh
# $ ./findlist.bash jack
id=$1
COUNTER=""
while [ true ]
do
name="list${COUNTER}"
curl -s "https://mobile.twitter.com/search?q=list%3A%40${id}%2F${name}&src=typed_query" | grep -s timeline > /dev/null && echo "list:@${id}/${name} HIT" || echo "list:@${id}/${name} MISS"
let COUNTER++
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment