Re:Show HN - usernique.com: Generate usernames and check ava...
by bdc on Sunday March 10, 2013 @06:50PM
(#5353898)
What are you using to determine whether *.io domains are "free" vs "taken"? It seems to be incorrect.
[ Parent
| on HN ]
Re:Show HN - usernique.com: Generate usernames and check ava...
by jschuur on Sunday March 10, 2013 @07:16PM
(#5354006)
Looks like there's some bugs here. Just claimed 'esi' was available on Twitter and GitHub, but it's not.
Re:Show HN - usernique.com: Generate usernames and check ava...
by cbhl on Sunday March 10, 2013 @07:31PM
(#5354065)
Hmm. Judging from the way the server.js is written, I'd expect he's being rate-limited, and the server returns free whenever the HTTP call doesn't return 200.
Edit: Just to be sure, I threw in a breakpoint on line 18 of generate.js, and set name to my username (cbhl) -- and got a false "free" result for both Twitter and GitHub.
The OP might need to be getting OAuth tokens and using the GitHub/Twitter APIs.
Re:Show HN - usernique.com: Generate usernames and check ava...
by trevorah on Sunday March 10, 2013 @07:39PM
(#5354092)
Any tips to sort this out? How are things being rate limited?
edit: just realised you meant that twitter/github etc are rate limiting my requests. Bummer.
Re:Show HN - usernique.com: Generate usernames and check ava...
by jschuur on Sunday March 10, 2013 @07:48PM
(#5354125)
Just hit the profile page URL and get the HTTP staus code. If https://twitter.com/ksdhbfslbflsdbs returns 404, it's not available.
Not quit the same (a username might be reserved internally), but either way, nobody else can use the name.
Re:Show HN - usernique.com: Generate usernames and check ava...
by trevorah on Sunday March 10, 2013 @08:05PM
(#5354181)
Yep, thats pretty much how it works at the moment (see https://github.com/trevorah/usernique/blob/master/server.js). The issue is that the server is sending out quite a few of these hits to twitter, and twitter is smart enough to start reject requests when things get a bit too much.
Re:Show HN - usernique.com: Generate usernames and check ava...
by nsp on Sunday March 10, 2013 @08:12PM
(#5354204)
I'm not a node guy, but I found this module for Whois checks - https://npmjs.org/package/whois-available
It uses the IANA Whois service, an admittedly cursory look doesn't turn up anything re: rate limits, but you could just do a get request on the root url and only check Whois if it 404s to be safe.
http://www.iana.org/whois
Re:Show HN - usernique.com: Generate usernames and check ava...
by jlogsdon on Sunday March 10, 2013 @10:16PM
(#5354521)
Whois wouldn't help here. The problem is that so many requests are going to twitter.com/[username] that they start sending false 404s (or some other error, not 200) because of rate limiting.
Re:Show HN - usernique.com: Generate usernames and check ava...
by nsp on Sunday March 10, 2013 @11:43PM
(#5354787)
I meant to fix the false positives on the domain name availability, or is that issue related somehow?
Re:Show HN - usernique.com: Generate usernames and check ava...
by cbhl on Wednesday March 13, 2013 @01:51PM
(#5369947)
If you can figure out how to do the request on the client side, that would mitigate the issue.
Otherwise, I'd say you're probably out of luck. (You could try doing the query over IPv6, but eventually they'll just block the entire subnet, so I don't know if it's worth the trouble.)
Re:Show HN - usernique.com: Generate usernames and check ava...
by mijustin on Sunday March 10, 2013 @07:50PM
(#5354132)
Here's another one: says "ece" is available. http://d.pr/i/fiRF
Re:Show HN - usernique.com: Generate usernames and check ava...
by trevorah on Sunday March 10, 2013 @06:56PM
(#5353926)
just checking the return code on a GET request. src is on github if you're curious. You're right though, looks like the domain lookups need a bit of work.
Re:Show HN - usernique.com: Generate usernames and check ava...
by rajivm on Sunday March 10, 2013 @07:23PM
(#5354033)
You should do a "whois" lookup for the domain. The return code for a 'get' request on the domain has no bearing on its availability -- many parked domains do not even have DNS configured, let alone HTTP.
Re:Show HN - usernique.com: Generate usernames and check ava...
by cbhl on Sunday March 10, 2013 @07:35PM
(#5354080)
I'd be wary of doing automated whois lookups, which might be considered abusive / against terms of service depending on which server you hit.
Re:Show HN - usernique.com: Generate usernames and check ava...
by trevorah on Sunday March 10, 2013 @08:08PM
(#5354190)
Good point. This doesnt sound like a quick fix.