Git Product home page Git Product logo

gosearch's Introduction

GoSearch

演示地址:http://45.76.240.91/

示意图

项目介绍

聚合各大搜索引擎结果,关键是秒开,UI清爽,支持暗夜模式,还支持自定义权重排序,哈哈!

主要功能有:

  • 支持搜索引擎配置权重
  • 支持域名配置权重
  • 搜索引擎结果渲染优化

里程碑计划

软件架构

采用go语言开发,前端和后端都在一个项目,转发请求到搜索引擎并对结果进行裁剪、聚合、展示。

依赖组件:

  • goquery
  • yaml.v2
  • bootstrap5(因为页面简单,不需要独立部署前端服务)

排序算法实现思路

使用说明

启动

Dock启动

docker run -d -p 80:80 zyhui98/gosearch:v1.0

访问地址:http://127.0.0.1

本地启动

go run main.go 

配置文件

路径:configs/config.yml

server:
  debug: false
  port: 80

search:
  - name: Baidu
    domain: www.baidu.com
    weight: 1 #搜索引擎权重因子
    positionWeight: 1 #搜索引擎自然排序权重因子
    score: 0 #搜索引擎设置的附加得分
    enable: false #是否开启
  - name: Bing
    domain: cn.bing.com
    weight: 1
    positionWeight: 1
    score: 10
    enable: true
  - name: Google
    domain: www.google.com
    weight: 1
    positionWeight: 1
    score: 10
    enable: false
  - name: 微信公众号
    domain: weixin.sogou.com
    weight: 1
    positionWeight: 1
    score: 10
    enable: true

site:
  - domain: www.csdn.com
    weight: 1 #域名权重因子
    score: 0 #网站域名设置的附加得分
  - domain: zhuanlan.zhihu.com
    weight: 1
    score: 0
  - domain: www.yuanbiguo.com
    weight: 1
    score: 0
  - domain: juejin.cn
    weight: 1
    score: 0

参与贡献

  • Fork 本项目
  • 新建 Feat_xxx 分支
  • 提交代码
  • 新建 Pull Request

gosearch's People

Contributors

zyhui98 avatar sssssaltyfish avatar

Forkers

prnake

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.