I know I can exclude one author by -author:someone, but it looks like excluding 2 authors doesn't work: -author:user1 -author:user2. The result will include the user2.
I read GitHub search syntax doc but could find a solution.
Is there a way to exclude 2 authors at the same time?
I don't seem to be facing the same issue as you for some reason. I tried searching "rust" in:name, to show all repos matching the exact phrase "rust", which gave me the following results (you can view them on GitHub here):
screenshot of searching "rust" in:name on GitHub
I then searched "rust" in:name -user:rust-lang -user:TheAlgorithms -user:tensorflow (view them on GitHub here) to exclude the first 3 authors from the results, which worked a charm:
screenshot of searching "rust" in:name -user:rust-lang -user:TheAlgorithms -user:tensorflow on GitHub
Related
I have a strange issue in my repo, when I search for i.e. "DEM"
Steps:
Open https://github.com/limex/schotterosm-cartocss-style/search?q=DEM
Expected Result:
4 Search Results. i.e. for the readme.md, as you can clearly see on the page https://github.com/limex/schotterosm-cartocss-style
Observed Result:
0 Results
I don't get any results for code searches within my repo.
Funfact:
My repo is a fork and the same search works on the original repo:
https://github.com/cyclosm/cyclosm-cartocss-style/search?q=DEM
Any idea why?
BR Günther
I think you repository is still being indexed. I also get that notification with the new search experience:
My objective is to count the number of repositories that use PyTorch. Therefore, I came up with the following code, using the THUNDER CLIENT extension in VS Code -
https://api.github.com/search/repositories?q=language:python + readme:PyTorch
However, this gives me just 7 search results. I am confident the result should be in the range of thousands. Could someone suggest where I am going wrong?
The GitHub search API for repositories checks the name, description and the README of all repositories.
Therefore, all that was needed to be done was -
https://api.github.com/search/repositories?q=PyTorch
I was trying to search Github for all repositories that contains the word article in the readme.
I tried two methods:
API: https://api.github.com/search/repositories?q=article&in=readme.
Github Search box: https://github.com/search?utf8=%E2%9C%93&q=article+in%3Areadme&type=Repositories&ref=searchresults
The first methods says there are total 9921 results, "total_count": 9921, whereas the search box finds 77638 repositories.
Why the discrepancy?
The advanced search page shows that:
in: is only for code search
a general term is used for all searches (-in: is ignored for those searches, except for code search)
So:
9921 is the number of readme file with article in it
77638 is the number of repo including an article file, or artienter code herecle in their titles.
Once I saw somewhere a sly link to w3c.org document. And it was suffixed by "diff" or something like, for instance: http://www.w3.org/TR/selectors-api2/diff/bla-bla-bla.
And it show what was added, what was removed like in diff tool.
So my question is, how can I view diff between documents on w3c.org without externall tools?
You're looking for this service:
http://services.w3.org/htmldiff
(was found by googeling: w3c diff, second result).
Example: http://services.w3.org/htmldiff?doc1=&doc2=http%3A%2F%2Fwww.w3.org%2FTR%2Fselectors-api2%2F
I'm new to Github and just want to browse through repos to find interesting ones.
I want, say, all ruby repos with more than 100 followers.
I go to advanced search and try "followers:100"
and get only repos with EXACTLY 100 followers (4 at the moment).
That differs from what i expect to be default behavior - find repos with 100 or more followers (more like Stackoverflow search works).
I am quite frustrated, because I can't get what is expected to be basic search functionality from a very popular site, and that makes me think that I'm obviously not understanding something very simple (because I think it is not possible for Github not to have such functions).
So is there a way for me to get the desired result?
Update January 2013 (source: "A whole new code search")
followers:>100
(intervals are supported: followers:100..150)
Original answer (April 2011)
followers:[100 TO *]
should do what you want: see your query with 100 or more followers.
(Note: the "TO" needs to be in uppercase)
(Source: New and Improved Search)
For example, we can search:
for people with a username fuzzily similar to ‘chacon’
who use Ruby as their primary language,
have at least 5 repos and
at least one follower:
You might also like the Hubscovery application. A simple search interface for Github.