Show HN: Find the email address of any GitHub user
github.com
github.com
What is interesting is I believe its illegal (can-spam) to email someone if you harvested their email programmatically...but seems to be a clever hack around the law for a company to sell off a harvested emails to be emailed by someone else.
Nope. You can email pretty much anyone in America, regardless of how you acquired the address (and provided you meet various other requirements about headers and content). The biggest criticism against CAN-SPAM is that it could be viewed as a license for every business to spam the planet exactly once (after that you have to start worrying about opt-outs).
Edit: Oops, now I'm not so sure... see below.
Thank you, I was wondering how so many managed to find my e-mail.
| I could easily imagine writing a hundred lines
| of a "better" language
You could easily do much of the same things (probably in a similar number of lines) using system calls in other languages.But the gist of it is dead simple.
For this author (hodgesmr) you just go to:
https://api.github.com/users/hodgesmr
... and if it's not shown there (author doesn't want to make it public?) then you look for it here:
https://api.github.com/users/hodgesmr/events/public
Aaaaand this is why I have a dozen different mail accounts.
curl -s https://api.github.com/users/$2/events/public |
grep "\"gravatar_id\":" |
sed -e's/[,|"]//g' |
head -n 1 |
awk '{print $(NF)}'
can be curl -sS https://api.github.com/users/$2/events/public |
sed -n '/"gravatar_id":/!d; s/",//; s/.*"//p; q'
and so on.(As a possible improvement you could also take all possible matches and compare their MD5's to the gravatar URL.)
I'm not really that familiar with bash scripting so this might be a mess.
This tool does not rely on email addresses being in profiles. It can look up the email addresses used in commits in the user’s repos, and use heuristics to choose the most likely one.
That's the goal, right? If the recruiter had an amazing, what you've always wanted kind of job for you, you'd probably want to hear about it. But if that were the case he'd take the time to find out what that opportunity looks like, and he'd probably just tell you the company instead of all the "my client" stuff.
On the other hand, if someone could tell me how to get someone's email address from their Tumblr or Twitter, I'd be eternally grateful. Stonewalls from both on the username-squatting front.
https://github.com/rShetty/Scriptomaniac/blob/master/github....
Its like knowing that my details are now public because I posted on HN when I expect only my posts to be public ... (Just an example as HN doesn't require an email id)