Skip to content

Commit f280fdb

Browse files
authored
Create followres.sh
1 parent 84a11e4 commit f280fdb

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

followres.sh

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/bin/bash
2+
# by az7rb
3+
4+
Help()
5+
{
6+
# Display Help
7+
echo "options:"
8+
echo ""
9+
echo "-h Help"
10+
echo "-u | Example: $0 -u az7rb"
11+
echo ""
12+
}
13+
14+
15+
# Request
16+
Twitter() {
17+
requestsearch="$(curl -s https://tweettunnel.com/$user | grep "Followers" | cut -d':' -f26 | grep '[0-9]' | awk -F\; '{ print $4 }' | sed 's/<span style=\"color//' | awk '{print "Followers: " $0 }')"
18+
19+
20+
echo ""
21+
echo $requestsearch > u
22+
echo "user: $user"
23+
cat u
24+
rm -r u
25+
26+
}
27+
28+
if [ -z $1 ]
29+
then
30+
Help
31+
exit
32+
else
33+
user=$2
34+
35+
fi
36+
37+
while getopts "h|u|" option; do
38+
case $option in
39+
h)
40+
Help
41+
;;
42+
u)
43+
Twitter
44+
;;
45+
*)
46+
Help
47+
;;
48+
49+
esac
50+
done

0 commit comments

Comments
 (0)