27

GitHub - zenuo/gogo: 「勾勾」是一个搜索工具,搜索结果基于谷歌,致力于「安全和简...

 4 years ago
source link: https://github.com/zenuo/gogo
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

勾勾:一个基于谷歌的搜索工具

是什么

「勾勾」是一个搜索工具,搜索结果基于谷歌,致力于「安全和简洁」的搜索体验。

安全

  • 「勾勾」是一个在用户谷歌之间的代理,谷歌无法得知用户的隐私(如UserAgent、Cookie等),也无法跟踪用户的结果点击

  • 部署简单,基于JDK 11,仅需一台处于可以访问谷歌的网络的主机即可

简洁

  • 精简(丑陋)到极致的Web前端
  • 提供Web API,轻松地自定义搜索前端(正在开发基于命令行的搜索前端

如何使用

本程序通过网页命令行Web API三种方式提供服务。

网页

可访问实例体验

首页截图:

6c44f17c7e035221816e7530.png

搜索页面截图:

e5c1b9df30645ffb8059ca72.png

命令行

请到Release页面下载可执行程序,并重命名为gogo-cli,放置到PATH路径下

$ gogo-cli github 1

截图如下:

639ad4d3863e52f90a16cbe5.png

Web API

搜索

$ curl -X GET -k "https://176.122.157.73:5000/api/search?q=github&p=1"
{
  "key": "github",
  "page": 1,
  "amount": 223000000,
  "elapsed": 0.43,
  "entries": [
    {
      "name": "The world's leading software development platform · GitHub",
      "url": "https://github.com/",
      "desc": "GitHub brings together the world's largest community of developers to discover, share, and build better software. From open source projects to private team ..."
    }
  ],
  "error": null
}

关键词提示

$ curl -X GET -k "https://176.122.157.73:5000/api/lint?q=github"
{
  "key": "github",
  "lints": [
    "github",
    "github<b> desktop</b>",
    "github<b> stock</b>",
    "github<b> microsoft</b>",
    "github<b> pages</b>",
    "github<b> api</b>",
    "github<b> tutorial</b>",
    "github<b> login</b>",
    "github<b> markdown</b>",
    "github<b> gist</b>"
  ],
  "error": null
}

开发计划

  • 后端实现细节文档
  • 可配置的缓存:内存与Redis

框架

站在巨人的肩膀上


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK