Open prabhakaran9397 opened 7 years ago
If email is public echo -e $(curl -s https://github.com/$USERNAME | grep mailto | egrep -o "\".*\"" | egrep -o "x[0-9a-z]{2}" | sed 's/x/\\x/g' | tr '\n' ' ' | sed 's/\ //g')
echo -e $(curl -s https://github.com/$USERNAME | grep mailto | egrep -o "\".*\"" | egrep -o "x[0-9a-z]{2}" | sed 's/x/\\x/g' | tr '\n' ' ' | sed 's/\ //g')
If email is private curl -s https://api.github.com/users/$USERNAME/events/public | egrep "\"email\":" | cut -d\" -f 4 | sort | uniq -c | sort -n | tail -1 | awk '{print $2}'
curl -s https://api.github.com/users/$USERNAME/events/public | egrep "\"email\":" | cut -d\" -f 4 | sort | uniq -c | sort -n | tail -1 | awk '{print $2}'
Yeah, but wanted to make one using Python! 👍
If email is public
echo -e $(curl -s https://github.com/$USERNAME | grep mailto | egrep -o "\".*\"" | egrep -o "x[0-9a-z]{2}" | sed 's/x/\\x/g' | tr '\n' ' ' | sed 's/\ //g')
If email is private
curl -s https://api.github.com/users/$USERNAME/events/public | egrep "\"email\":" | cut -d\" -f 4 | sort | uniq -c | sort -n | tail -1 | awk '{print $2}'