vishwanath1306 / GitHubMailID

Find the mail ID of any person on github using github API
0 stars 0 forks source link

This command would do #1

Open prabhakaran9397 opened 7 years ago

prabhakaran9397 commented 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')

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}'

vishwanath1306 commented 7 years ago

Yeah, but wanted to make one using Python! 👍