Teach you to quickly locate projects on GitHub

Many small partners often have such confusion. I have read many technical learning documents, books, and even videos. I want to practice, so I opened GitHub and wanted to find an open source project to learn and gain practical experience in the project. .

At this time, many friends will face such a problem: "I can't search, how can I find it?"

I can only give up in the end.

This article teaches you to accurately search for projects on GitHub.

Components of an open source project

Before making it clear, let's first understand what are the components of an open source project:

  • name: project name

  • description: a brief description of the project

  • Source code of the project

  • README.md: Introduction to the details of the project

In addition to these elements, the number of stars and forks of the project itself is also a criterion for judging whether an open source project is hot, and it is also a very important search criterion. In addition, we should also pay attention to the latest update date of this project, because the more active the project, the more frequent its update date.

The above elements are some of the key points that we should pay attention to when searching.

How to search

So how do we search?

Suppose we want to search for React now, I believe most of the small partners directly type in the search box: "React", and then press Enter, you will find that the situation is as follows:

The search results will show a lot of open source projects, which makes you overwhelmed and unable to start. Many friends gave up after searching this step because there are too many projects and they can’t find how to find the open source projects that interest them. The search is very inaccurate. So let's learn a slightly more precise search method.

Search by name

Search for projects that contain React in the project name:

in:name React

Get the following results:

As you can see, these search results are all projects with the keyword "React" in the project name, but there are still many projects.

Now let's constrain

For example, I can be accurate to the project's star number greater than 5000+:

in:name React stars:>5000

The result is this:

The search results are much more accurate in an instant, and now there are only 114 items to choose from. Of course, we generally don't set the number of stars so high, generally setting 1000 is almost the same.

In the same way, we can also search according to the number of forks:

in:name React stars:>5000 forks:>3000

You will find that the results are getting more and more accurate!

Follow the README to search

Search README.md for projects that contain React:

 in:readme React

There are so many results, so let's limit the number of stars and forks:

in:readme React stars:>3000 forks:>3000

The search results were accurate to 90 at once. At this time, you go to choose the project, it will become much easier.

Search by description

Suppose we now want to learn about microservice projects, we search for projects that contain microservices in the project description:

in:description 微服务

There are so many results, then we will add some filter conditions:

in:description 微服务 language:python 

language:python means that we restrict the language to python, let us see the result:

The search results are much more precise.

If in these projects, we want to find the most recently updated item, meaning that the update time is the most recent, we can do this:

in:description 微服务 language:python pushed:>2020-01-01

pushed:>2020-01-01 means that we limit the last update time of the project to 2020-01-01, let's see how the result is:

There are only 8 search results, and these projects belong to the more active ones, so I won’t be entangled anymore.

to sum up

Okay, let's summarize. We want to conduct accurate search, nothing more than adding filter conditions.

  • in:name xxx // search by project name

  • in:readme xxx // search according to README

  • in:description xxx // search by description

So here, we can add filter conditions

  • stars:>xxx // The number of stars is greater than xxx

  • forks:>3000 // The number of forks is greater than xxx

  • language:xxx // The programming language is xxx

  • pushed:>YYYY-MM-DD // The last update time is greater than YYYY-MM-DD

The above are some tips for us to accurately search for projects on GitHub, hope it will help you!

作者丨觉非
https://juejin.im/post/5e3d01c56fb9a07c91100801#heading-5

END喜欢本文的朋友们,欢迎长按下图关注订阅号成猿之路,收看更多精彩内容!
推荐几个不错的黑科技网站
一款 IDEA 中强大的代码生成利器
给大家推荐8个SpringBoot精选项目
Github上10 个优秀的后台控制面板
MySQL 学习笔记
我知道你 “在看”


Guess you like

Origin blog.csdn.net/qq_39507327/article/details/111570344