Live data from Hacker News

Find out how many users/repos Github has by a simple search

github.com

21–30 of 30 posts

Re: Find out how many users/repos Github has by a simple search

#23
So how does this work? From the search its cheat sheet:

"@defunkt Get all repositories from the user defunkt."

Seeing as there _is_ a user called "a: (http://github.com/a) but he doesn't have a single line of code, no repositories and no active issues either; the search breaks somehow and returns the repository, issue and code (LOC?) count of ALL people.

For example trying it with "@b" (or any existing user after the at-sign) does yield the correct results (the respective counts for user b: http://github.com/b). Trying it with someone with no repositories, code and issues OR a user which does not exist (@thisuserdoesnotexist) results in the same behavior.

Re: Find out how many users/repos Github has by a simple search

#24

So now you could scrape the name of every GitHub user and their email if it is public.

Don't need to scrape it, just use their API:

https://api.github.com/users?since=0

And iterate on. They even give you a HTTP header for the next URI:

Link: ;" rel="nofollow">https://api.github.com/users?since=135>; rel="next"

There is a rate limit of 60 (per hour), but if you use oauth then it's 5000. See http://developer.github.com/v3/#rate-limiting

Re: Find out how many users/repos Github has by a simple search

#25

Sorting by "Least recently joined" is interesting. The GitHub team are all there, naturally, but I'm intrigued what "tater" is about. Yehuda Katz is famously user ID 4 but tater shows up as user 611789 through the API. Other than that, the first 10 pages or so are a real who's who of the Ruby scene in 2007-2008 :-)

Woop. 140th person to join GitHub.

Back then you pretty much had to be invited by a Ruby/Rails person. I got in by submitting a patch to Dr Nic. :)

Re: Find out how many users/repos Github has by a simple search

#27

So how does this work? From the search its cheat sheet: "@defunkt Get all repositories from the user defunkt." Seeing as there _is_ a user called "a: ( http://github.com/a ) but he doesn't have a single line of code, no repositories and no active issues either; the search breaks somehow and returns the repository, issue and code (LOC?) count of ALL people. For example trying it with "@b" (or any existing user after t…

@a is probably an alias for @all (https://github.com/search?q=%40all&type=Users&ref=searchresu...).

[edit 1] @everybody seems to return every user

[edit 2] @everything seems to return ... everything.

[edit 3] @qdfhsdfjsdqjrekle seems to return everything. Ok. It's a bug. :>

Re: Find out how many users/repos Github has by a simple search

#28
post #27

So how does this work? From the search its cheat sheet: "@defunkt Get all repositories from the user defunkt." Seeing as there _is_ a user called "a: ( http://github.com/a ) but he doesn't have a single line of code, no repositories and no active issues either; the search breaks somehow and returns the repository, issue and code (LOC?) count of ALL people. For example trying it with "@b" (or any existing user after t…

@a is probably an alias for @all ( https://github.com/search?q=%40all&type=Users&ref=searchresu... ). [edit 1] @everybody seems to return every user [edit 2] @everything seems to return ... everything. [edit 3] @qdfhsdfjsdqjrekle seems to return everything. Ok. It's a bug. :>

No, they are specifically searching for content by @{username} - refer to the cheat sheet on the search page. @{non-existent-username-or-user-with-no-activity} triggers this behavior.

Re: Find out how many users/repos Github has by a simple search

#29

It seems to work with @{any letter}. Can anybody explain to me how GitHub is interpreting this search term?

It does not work with @{any letter}. Try @b or @x - they will search for content by user 'b' (http://github.com/b) and user 'x' (http://github.com/x).

Re: Find out how many users/repos Github has by a simple search

#30

Sorting by "Least recently joined" is interesting. The GitHub team are all there, naturally, but I'm intrigued what "tater" is about. Yehuda Katz is famously user ID 4 but tater shows up as user 611789 through the API. Other than that, the first 10 pages or so are a real who's who of the Ruby scene in 2007-2008 :-)

Woop. 140th person to join GitHub. Back then you pretty much had to be invited by a Ruby/Rails person. I got in by submitting a patch to Dr Nic. :)

See, I'm not entirely sure about this date ordering stuff.. because I'm around #80 by that method, but if I use the API, I'm #118. Try http://caius.github.io/github_id/ to see what your actual user ID is, as I think it's more truthful.
Post reply on HN